[pve-devel] [PATCH lxc 2/2] use dh_apparmor for the lxc-containers profile

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Jul 29 11:58:02 CEST 2016


for consistency, this also ignores profile-reload errors
(again so that we can install it in a chroot without
unnecessary installation failures)
---
 debian/lxc-pve.postinst | 3 ---
 debian/rules            | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/debian/lxc-pve.postinst b/debian/lxc-pve.postinst
index 057c19f..b46e96d 100644
--- a/debian/lxc-pve.postinst
+++ b/debian/lxc-pve.postinst
@@ -14,9 +14,6 @@ case "$1" in
 	# create subuid/subgui map for root
 	# (to run unprivileged containers as root)
 	usermod -v 100000-165535 -w 100000-165535 root
-
-	# update apparmor profiles
-	apparmor_parser -r -W -T /etc/apparmor.d/lxc-containers
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/rules b/debian/rules
index 57d50d2..d6b5408 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,7 +33,7 @@ override_dh_strip:
 
 override_dh_install:
 	dh_apparmor -p lxc-pve --profile-name=usr.bin.lxc-start
-
+	dh_apparmor -p lxc-pve --profile-name=lxc-containers
 	dh_install --fail-missing
 
 override_dh_systemd_start:
-- 
2.1.4





More information about the pve-devel mailing list