]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
apparmor: Use more generic allow rule for pivot
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 8 Apr 2014 17:17:27 +0000 (13:17 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 8 Apr 2014 18:45:00 +0000 (14:45 -0400)
Recent fixes in the apparmor kernel code is now making at least the CI
environment and quite possibly some others fail due to an invalid path
in the pivot_root stanza.

So update both lines to allow a more generic pivot_root call for
anything in LXC's work directory.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
config/apparmor/abstractions/start-container

index d10996bd70e1baaf1228db31e9b56e4e051e71a4..e31f8f3ba05eb8acbfb7468879e35124d7f033ff 100644 (file)
   umount,
   #umount /mnt/{**,},
 
+  # This may look a bit redundant, however it appears we need all of
+  # them if we want things to work properly on all combinations of kernel
+  # and userspace parser...
+  pivot_root /usr/lib/lxc/,
   pivot_root /usr/lib/*/lxc/,
-  pivot_root /usr/lib/lxc/root/,
+  pivot_root /usr/lib/lxc/**,
+  pivot_root /usr/lib/*/lxc/**,
 
   change_profile -> lxc-*,
   change_profile -> unconfined,