[Pkg-libvirt-commits] [libvirt] 03/04: apparmor: delete profile on VM shutdown

Guido Guenther agx at moszumanska.debian.org
Mon Sep 18 19:19:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to annotated tag debian/3.7.0-4
in repository libvirt.

commit 597143d2ef39d51e2610e69d008093cfddccb9f0
Author: Guido Günther <agx at sigxcpu.org>
Date:   Mon Sep 18 20:24:01 2017 +0200

    apparmor: delete profile on VM shutdown
---
 .../apparmor-delete-profile-on-VM-shutdown.patch   | 23 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/apparmor-delete-profile-on-VM-shutdown.patch b/debian/patches/apparmor-delete-profile-on-VM-shutdown.patch
new file mode 100644
index 0000000..dc46d46
--- /dev/null
+++ b/debian/patches/apparmor-delete-profile-on-VM-shutdown.patch
@@ -0,0 +1,23 @@
+From: =?utf-8?q?Guido_G=C3=BCnther?= <agx at sigxcpu.org>
+Date: Mon, 18 Sep 2017 20:23:11 +0200
+Subject: apparmor: delete profile on VM shutdown
+
+instead of only unloading it. This makes sure old profiles don't pile up
+and we get updates to modified templates on VM restart.
+---
+ src/security/security_apparmor.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c
+index 5afe0c5..1db94c6 100644
+--- a/src/security/security_apparmor.c
++++ b/src/security/security_apparmor.c
+@@ -220,7 +220,7 @@ remove_profile(const char *profile)
+ {
+     int rc = -1;
+     const char * const argv[] = {
+-        VIRT_AA_HELPER, "-R", "-u", profile, NULL
++        VIRT_AA_HELPER, "-D", "-u", profile, NULL
+     };
+ 
+     if (virRun(argv, NULL) == 0)
diff --git a/debian/patches/series b/debian/patches/series
index 7ced0fc..3cfe804 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -18,3 +18,4 @@ Set-defaults-for-zfs-tools.patch
 Pass-GPG_TTY-env-var-to-the-ssh-binary.patch
 apparmor-add-attach_disconnected.patch
 apparmor-cater-for-new-AAVMF-image-location.patch
+apparmor-delete-profile-on-VM-shutdown.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git



More information about the Pkg-libvirt-commits mailing list