libvirt/src/security
Jamie Strandboge 593e0072eb implement usb and pci hot attach in AppArmor driver
Description: Implement AppArmorSetSecurityHostdevLabel() and
AppArmorRestoreSecurityHostdevLabel() for hostdev and pcidev attach.

virt-aa-helper also has to be adjusted because *FileIterate() is used for pci
and usb devices and the corresponding XML for hot attached hostdev and pcidev
is not in the XML passed to virt-aa-helper. The new '-F filename' option is
added to append a rule to the profile as opposed to the existing '-f
filename', which rewrites the libvirt-<uuid>.files file anew. This new '-F'
option will append a rule to an existing libvirt-<uuid>.files if it exists,
otherwise it acts the same as '-f'.

load_profile() and reload_profile() have been adjusted to add an 'append'
argument, which when true will use '-F' instead of '-f' when executing
virt-aa-helper.

All existing calls to load_profile() and reload_profile() have been adjusted
to use the old behavior (ie append==false) except AppArmorSetSavedStateLabel()
where it made sense to use the new behavior.

This patch also adds tests for '-F'.

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/640993
2010-09-30 14:54:56 -06:00
..
security_apparmor.c implement usb and pci hot attach in AppArmor driver 2010-09-30 14:54:56 -06:00
security_apparmor.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
security_driver.c Disable all disk probing in QEMU driver & add config option to re-enable 2010-07-19 18:25:13 +01:00
security_driver.h Disable all disk probing in QEMU driver & add config option to re-enable 2010-07-19 18:25:13 +01:00
security_selinux.c Disable all disk probing in QEMU driver & add config option to re-enable 2010-07-19 18:25:13 +01:00
security_selinux.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
virt-aa-helper.c implement usb and pci hot attach in AppArmor driver 2010-09-30 14:54:56 -06:00