]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
apparmor: fix profile so that it works on Ubuntu 15.04
authorVincent Bernat <vincent@bernat.im>
Sun, 30 Aug 2015 15:11:54 +0000 (17:11 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 30 Aug 2015 15:12:16 +0000 (17:12 +0200)
src/daemon/usr.sbin.lldpd.in

index 97e32334c06b226eba3445509cfbd86a9a172403..d459cd44e07ede420c284f73db4335f199fc559c 100644 (file)
   network packet raw,
 
   @sbindir@/lldpd mr,
+  /run/systemd/notify w,
 
   # Ability to run lldpcli for self-configuration
   @sbindir@/lldpcli rix,
+  @sysconfdir@/lldpd.d/ r,
   @sysconfdir@/lldpd.d/* r,
   @sysconfdir@/lldpd.conf r,
 
@@ -31,6 +33,7 @@
   @LLDPD_CTL_SOCKET@ rw,
 
   # Chroot setup
+  @PRIVSEP_CHROOT@ w,
   @PRIVSEP_CHROOT@/etc/ rw,
   @PRIVSEP_CHROOT@/etc/localtime rw,
 
     /etc/lsb-release r,
     /etc/debian_version r,
     /var/lib/dpkg/** r,
-
-    /usr/local/lib/python3.[0-4]/dist-packages/ r,
+    /usr/local/lib/python3.[0-5]/dist-packages/ r,
     /usr/bin/ r,
-    /usr/bin/python3.[0-4] r,
+    /usr/bin/python3.[0-5] r,
   }
 
   # Gather network information