[libvirt] [PATCH] virt-aa-helper: Actually fix AppArmor profile

Andrea Bolognani abologna at redhat.com
Tue Aug 20 07:56:26 UTC 2019


Tried previously in

  commit b1eb8b3e8fd1d4cb1da8e5e2b16f2c10837fd823
  Author: Andrea Bolognani <abologna at redhat.com>
  Date:   Mon Aug 19 10:23:42 2019 +0200

    virt-aa-helper: Fix AppArmor profile

  v5.6.0-243-gb1eb8b3e8f

with somewhat disappointing results.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 src/security/apparmor/usr.lib.libvirt.virt-aa-helper | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/security/apparmor/usr.lib.libvirt.virt-aa-helper b/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
index d81dddef30..64772f0756 100644
--- a/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
+++ b/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
@@ -18,8 +18,8 @@ profile virt-aa-helper /usr/{lib,lib64}/libvirt/virt-aa-helper {
   @{PROC}/filesystems r,
 
   # Used when internally running another command (namely apparmor_parser)
-  @{PROC}/self/fd r,
-  @{PROC}/@{pid}/fd r,
+  @{PROC}/self/fd/ r,
+  @{PROC}/@{pid}/fd/ r,
 
   /etc/libnl-3/classid r,
 
-- 
2.21.0




More information about the libvir-list mailing list