Re: [PATCH 1/6] apparmor: Fix parthelper, iohelper and virt-aa-helper paths in profiles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/27/20 5:30 PM, Jamie Strandboge wrote:
On Sat, 25 Jan 2020, Michal Privoznik wrote:

These helper binaries are installed under libexec dir not lib
dir.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
  src/security/apparmor/usr.lib.libvirt.virt-aa-helper | 2 +-
  src/security/apparmor/usr.sbin.libvirtd              | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/security/apparmor/usr.lib.libvirt.virt-aa-helper b/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
index 11e9c039ca..504c70e0ce 100644
--- a/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
+++ b/src/security/apparmor/usr.lib.libvirt.virt-aa-helper
@@ -39,7 +39,7 @@ profile virt-aa-helper /usr/{lib,lib64}/libvirt/virt-aa-helper {
    deny /dev/mapper/ r,
    deny /dev/mapper/* r,
- /usr/{lib,lib64}/libvirt/virt-aa-helper mr,
+  /usr/libexec/virt-aa-helper mr,

I suggest you use this instead here and in the rest of the patch series:

/usr/{lib,lib64,libexec}/libvirt/virt-aa-helper mr,

since it will let existing installs to continue to work.

You mean some downstream has installed virt-aa-helper into /usr/lib or /usr/lib64? Because the upstream install rule says /usr/libexec/.

src/security/Makefile.inc.am=64=if WITH_LIBVIRTD
src/security/Makefile.inc.am:65:libexec_PROGRAMS += virt-aa-helper

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux