[libvirt] [PATCH] security: Fix labelling host devices (bz 1145968)

Eric Blake eblake at redhat.com
Wed Sep 24 19:59:31 UTC 2014


On 09/24/2014 09:49 AM, Cole Robinson wrote:
> The check for ISCSI devices was missing a check of subsys type, which
> meant we could skip labelling of other host devices as well. This fixes
> USB hotplug on F21
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1145968
> ---
>  src/security/security_apparmor.c | 3 ++-
>  src/security/security_dac.c      | 6 ++++--
>  src/security/security_selinux.c  | 6 ++++--
>  3 files changed, 10 insertions(+), 5 deletions(-)

ACK.

Might be worth a helper function to cut down on the repetition, but
that's not mandatory.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list