From 3586e202baeb4e21fdee77acea63781837c494ca Mon Sep 17 00:00:00 2001 From: EricLin0509 Date: Sun, 13 Oct 2024 18:55:40 +0800 Subject: [PATCH 1/2] A fix for fwupdmgr --- apparmor.d/profiles-a-f/fwupdmgr | 1 + 1 file changed, 1 insertion(+) diff --git a/apparmor.d/profiles-a-f/fwupdmgr b/apparmor.d/profiles-a-f/fwupdmgr index 1ec9fe65..4d53fdf5 100644 --- a/apparmor.d/profiles-a-f/fwupdmgr +++ b/apparmor.d/profiles-a-f/fwupdmgr @@ -50,6 +50,7 @@ profile fwupdmgr @{exec_path} flags=(attach_disconnected) { /dev/i2c-@{int} rw, /dev/tty rw, + /dev/pts/@{int} rw, profile bus flags=(attach_disconnected) { include From 247e84c9a96f561cf3767c81763e3be45b03b0df Mon Sep 17 00:00:00 2001 From: Roman Beslik Date: Sun, 13 Oct 2024 13:56:40 +0300 Subject: [PATCH 2/2] Vim; writing configuration files --- apparmor.d/groups/pacman/pacdiff | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apparmor.d/groups/pacman/pacdiff b/apparmor.d/groups/pacman/pacdiff index e2a0f260..64a813bf 100644 --- a/apparmor.d/groups/pacman/pacdiff +++ b/apparmor.d/groups/pacman/pacdiff @@ -32,10 +32,14 @@ profile pacdiff @{exec_path} flags=(attach_disconnected) { @{bin}/tput rix, @{bin}/vim rix, + owner @{HOME}/.viminfo{,.tmp} rw, + + owner @{user_cache_dirs}/vim/{,**} rw, + # packages files / r, /boot/{,**} r, - /etc/{,**} r, + /etc/{,**} rw, /opt/{,**} r, /srv/{,**} r, /usr/{,**} r,