[libvirt] [PATCH] Move load of AppArmor profile to GenLabel()

Eric Blake eblake at redhat.com
Fri Jun 24 16:11:11 UTC 2011


On 06/24/2011 08:51 AM, Jamie Strandboge wrote:
> This patch addresses the change by making GenLabel() load the AppArmor
> profile into the kernel after the label (profile name) is generated.
> SetAllLabel() is then adjusted to only reload_profile() and append stdin_fn to
> the profile when it is specified. This also makes the AppArmor driver work
> like its SELinux counterpart with regard to SetAllLabel() and stdin_fn.

ACK and pushed.

> I realized I could simply load the profile in GenLabel() and still use
> SetAllLabel() to reload the profile when stdin_path was specified. The
> current fix is implemented wholly within the AppArmor driver and I think
> much cleaner.

Indeed :)

-- 
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/20110624/50784c64/attachment-0001.sig>


More information about the libvir-list mailing list