From 7e3c546e3dd311bb2a451a815a3d260c2cf2e906 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 1 Sep 2024 15:25:43 +0100 Subject: [PATCH] fix(profile): xdg-mime mimetype path. fix #455 --- apparmor.d/groups/freedesktop/xdg-mime | 3 +++ apparmor.d/profiles-m-r/mimetype | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apparmor.d/groups/freedesktop/xdg-mime b/apparmor.d/groups/freedesktop/xdg-mime index c279c41a..1a217a2b 100644 --- a/apparmor.d/groups/freedesktop/xdg-mime +++ b/apparmor.d/groups/freedesktop/xdg-mime @@ -35,6 +35,7 @@ profile xdg-mime @{exec_path} flags=(attach_disconnected) { @{bin}/gio rPx, @{bin}/kbuildsycoca5 rPx, @{bin}/ktraderclient5 rPUx, + @{bin}/vendor_perl/mimetype rPx, @{bin}/mimetype rPx, @{bin}/xprop rPx, @@ -47,6 +48,8 @@ profile xdg-mime @{exec_path} flags=(attach_disconnected) { owner @{run}/user/@{uid}/ r, + owner /tmp/wl-copy-buffer-@{rand6}/stdin r, + @{sys}/devices/platform/**/hwmon/hwmon@{int}/temp* r, @{sys}/devices/platform/**/hwmon/hwmon@{int}/fan* r, diff --git a/apparmor.d/profiles-m-r/mimetype b/apparmor.d/profiles-m-r/mimetype index da56703c..d9e34f8b 100644 --- a/apparmor.d/profiles-m-r/mimetype +++ b/apparmor.d/profiles-m-r/mimetype @@ -7,7 +7,7 @@ abi , include -@{exec_path} = @{bin}/mimetype +@{exec_path} = @{bin}/mimetype @{bin}/*_perl/mimetype profile mimetype @{exec_path} { include include