]> git.proxmox.com Git - lxc.git/blame - debian/patches/extra/0011-apparmor-allow-start-container-to-change-to-lxc.patch
bump version to 3.0.1+pve2-1
[lxc.git] / debian / patches / extra / 0011-apparmor-allow-start-container-to-change-to-lxc.patch
CommitLineData
2d8021b3
WB
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Tue, 24 Jul 2018 16:42:26 +0200
4Subject: [PATCH] apparmor: allow start-container to change to lxc-**
5
6For generated profiles with apparmor namespaces we get
7profile names with slashes in them. To match those, we need
8to allow changing to lxc-**, not just lxc-*.
9
10Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
11(cherry picked from commit 242a9fa7ee7e9f524de5a23917faa846ea525622)
12---
13 config/apparmor/abstractions/start-container | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/config/apparmor/abstractions/start-container b/config/apparmor/abstractions/start-container
17index 414d058b..3df9883e 100644
18--- a/config/apparmor/abstractions/start-container
19+++ b/config/apparmor/abstractions/start-container
20@@ -40,5 +40,6 @@
21 pivot_root /usr/lib*/*/lxc/**,
22
23 change_profile -> lxc-*,
24+ change_profile -> lxc-**,
25 change_profile -> unconfined,
26 change_profile -> :lxc-*:unconfined,
27--
282.11.0
29