]> xenbits.xensource.com Git - libvirt.git/commitdiff
apparmor: Add support for named profiles
authorJim Fehlig <jfehlig@suse.com>
Sat, 12 Jan 2019 00:26:03 +0000 (17:26 -0700)
committerJim Fehlig <jfehlig@suse.com>
Wed, 23 Jan 2019 18:10:15 +0000 (11:10 -0700)
Upstream apparmor is switching to named profiles. In short,

/usr/sbin/dnsmasq {

becomes

profile dnsmasq /usr/sbin/dnsmasq {

Consequently, any profiles that reference profiles in a peer= condition
need to be updated if the referenced profile switches to a named profile.
Apparmor commit 9ab45d81 switched dnsmasq to a named profile. ATM it is
the only named profile switch that has affected libvirt. Add rules to the
libvirtd profile to reference dnsmasq in peer= conditions by profile name.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/security/apparmor/usr.sbin.libvirtd

index f0ffc5300861dfc00df61d78708288ccb7553ea0..0db52c524cff8e67c325ce605c03a336c6f49412 100644 (file)
 
   ptrace (read,trace) peer=unconfined,
   ptrace (read,trace) peer=/usr/sbin/libvirtd,
+  ptrace (read,trace) peer=dnsmasq,
   ptrace (read,trace) peer=/usr/sbin/dnsmasq,
   ptrace (read,trace) peer=libvirt-*,
 
+  signal (send) peer=dnsmasq,
   signal (send) peer=/usr/sbin/dnsmasq,
   signal (read, send) peer=libvirt-*,
   signal (send) set=("kill", "term") peer=unconfined,