From a01c0ec9892f7b0bd4041d7b583aed1a195bec38 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 6 Apr 2023 00:01:37 +0100 Subject: [PATCH] feat(kde): better packagekit support. --- apparmor.d/profiles-m-r/packagekitd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apparmor.d/profiles-m-r/packagekitd b/apparmor.d/profiles-m-r/packagekitd index 3e756a4b..4ab864f6 100644 --- a/apparmor.d/profiles-m-r/packagekitd +++ b/apparmor.d/profiles-m-r/packagekitd @@ -88,6 +88,7 @@ profile packagekitd @{exec_path} flags=(attach_disconnected) { /{usr/,}{s,}bin/ldconfig rix, /{usr/,}bin/{,ba,da}sh rix, + /{usr/,}bin/cp rix, /{usr/,}bin/echo rix, /{usr/,}bin/gdbus rix, /{usr/,}bin/gzip rix, @@ -125,6 +126,8 @@ profile packagekitd @{exec_path} flags=(attach_disconnected) { @{run}/systemd/inhibit/*.ref rw, owner @{run}/systemd/users/@{uid} r, + owner /dev/shm/AP_0x??????/{,**} rw, + @{sys}/**/ r, @{sys}/devices/**/modalias r, @@ -160,9 +163,13 @@ profile packagekitd @{exec_path} flags=(attach_disconnected) { owner /var/tmp/zypp.*/zypp-*/ r, # only: opensuse owner /var/tmp/zypp.*/zypp-*/** rwkl -> /var/tmp/zypp.*/zypp-trusted-*/**, + owner @{run}/user/@{uid}/gnupg/ r, + owner @{run}/user/@{uid}/gnupg/ rwkl -> @{run}/user/@{uid}/gnupg/**, + owner @{PROC}/@{pid}/fd/ r, owner @{PROC}/@{pid}/task/@{tid}/comm rw, + include if exists } include if exists