[libvirt] [PATCH 8/n] selinux: avoid memory overhead of matchpathcon

Eric Blake eblake at redhat.com
Tue Dec 14 21:52:56 UTC 2010


On 11/30/2010 08:54 PM, Eric Blake wrote:
> * src/security/security_selinux.c
> (SELinuxRestoreSecurityFileLabel): Use selabel_lookup instead of
> matchpathcon.
> Suggested by Daniel Walsh.
> ---
> 

>  #include <config.h>
>  #include <selinux/selinux.h>
> +#include <selinux/label.h>
>  #include <selinux/context.h>
>  #include <sys/types.h>
>  #include <sys/stat.h>

Phooey.  This breaks on RHEL 5, where libselinux-devel-1.33.4 lacks
<selinux/label.h>.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101214/9272f8ce/attachment-0001.sig>


More information about the libvir-list mailing list