From d12db8a8dc4be7cb0c9a59bab15c486c5f6f997b Mon Sep 17 00:00:00 2001 From: fira959 Date: Thu, 30 May 2024 19:51:57 +0200 Subject: [PATCH] Minor improvements (#336) * Update audio-client * Update mpv * Update mutt add common mail dir * Update apparmor.d * Update mutt * Update mutt * Update mutt * Update mutt * Update mutt --- apparmor.d/abstractions/audio-client | 2 +- apparmor.d/profiles-m-r/mpv | 1 + apparmor.d/profiles-m-r/mutt | 3 ++- apparmor.d/tunables/home.d/apparmor.d | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apparmor.d/abstractions/audio-client b/apparmor.d/abstractions/audio-client index af4adf17..f12e7fcc 100644 --- a/apparmor.d/abstractions/audio-client +++ b/apparmor.d/abstractions/audio-client @@ -16,7 +16,7 @@ /etc/esound/esd.conf r, /etc/libao.conf r, /etc/openal/alsoft.conf r, - /etc/pipewire/client.conf r, + /etc/pipewire/client{,-rt}.conf r, /etc/pipewire/client.conf.d/{,**} r, /etc/pulse/client.conf r, /etc/pulse/client.conf.d/{,**} r, diff --git a/apparmor.d/profiles-m-r/mpv b/apparmor.d/profiles-m-r/mpv index 058135e8..23aa2b9a 100644 --- a/apparmor.d/profiles-m-r/mpv +++ b/apparmor.d/profiles-m-r/mpv @@ -64,6 +64,7 @@ profile mpv @{exec_path} { owner @{PROC}/@{pid}/cmdline r, owner @{PROC}/@{pid}/task/ r, + owner @{PROC}/@{pid}/task/@{tid}/comm rw, @{run}/udev/data/+input:input@{int} r, # for mouse, keyboard, touchpad @{run}/udev/data/c13:@{int} r, # for /dev/input/* diff --git a/apparmor.d/profiles-m-r/mutt b/apparmor.d/profiles-m-r/mutt index dd5a85ee..27060bf3 100644 --- a/apparmor.d/profiles-m-r/mutt +++ b/apparmor.d/profiles-m-r/mutt @@ -97,7 +97,8 @@ profile mutt @{exec_path} { @{bin}/lynx mrix, owner @{HOME}/.w3m/* rw, - + owner @{user_mail_dirs}/{,**} r, + owner @{user_mail_dirs}/tmp/{,**} rw, owner /{var/,}tmp/mutt* rw, include if exists diff --git a/apparmor.d/tunables/home.d/apparmor.d b/apparmor.d/tunables/home.d/apparmor.d index 7a3ee569..5b820416 100644 --- a/apparmor.d/tunables/home.d/apparmor.d +++ b/apparmor.d/tunables/home.d/apparmor.d @@ -21,7 +21,7 @@ @{XDG_VM_DIR}=".vm" @{XDG_VM_SHARES_DIR}="VM_Shares" @{XDG_IMG_DIR}="images" -@{XDG_MAIL_DIR}="Mail" +@{XDG_MAIL_DIR}="Mail" ".{m,M}ail" @{XDG_SCREENSHOTS_DIR}="Pictures/Screenshots" @{XDG_WALLPAPERS_DIR}="Pictures/Wallpapers"