From: Markos Chandras Date: Thu, 19 Jul 2018 11:12:13 +0000 (+0100) Subject: apparmor: Allow /usr/lib* paths for mount and pivot_root X-Git-Tag: lxc-3.1.0~202^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=733e3757603f37375bbd4a1b229e91a88036297f;p=thirdparty%2Flxc.git apparmor: Allow /usr/lib* paths for mount and pivot_root openSUSE Leap 15 is using --libdir=/usr/lib64 when building for x86_64 so we need to allow this path in the apparmor profiles. Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1099239 Signed-off-by: Markos Chandras --- diff --git a/config/apparmor/abstractions/start-container b/config/apparmor/abstractions/start-container index fa64c278c..414d058ba 100644 --- a/config/apparmor/abstractions/start-container +++ b/config/apparmor/abstractions/start-container @@ -9,8 +9,8 @@ ptrace, # currently blocked by apparmor bug - mount -> /usr/lib/*/lxc/{**,}, - mount -> /usr/lib/lxc/{**,}, + mount -> /usr/lib*/*/lxc/{**,}, + mount -> /usr/lib*/lxc/{**,}, mount fstype=devpts -> /dev/pts/, mount options=bind /dev/pts/ptmx/ -> /dev/ptmx/, mount options=bind /dev/pts/** -> /dev/**, @@ -34,10 +34,10 @@ # 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/**, - pivot_root /usr/lib/*/lxc/**, + pivot_root /usr/lib*/lxc/, + pivot_root /usr/lib*/*/lxc/, + pivot_root /usr/lib*/lxc/**, + pivot_root /usr/lib*/*/lxc/**, change_profile -> lxc-*, change_profile -> unconfined,