From a48daa9c9ecb9e81483b6346e2425db4bc6e3261 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 28 Nov 2023 10:57:48 +0000 Subject: [PATCH] fix(profile): reduce the number of profile transition. See: 209688f --- apparmor.d/abstractions/trash.d/complete | 4 ++-- apparmor.d/abstractions/user-download-strict | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apparmor.d/abstractions/trash.d/complete b/apparmor.d/abstractions/trash.d/complete index 80243f4d..ea7760a0 100644 --- a/apparmor.d/abstractions/trash.d/complete +++ b/apparmor.d/abstractions/trash.d/complete @@ -6,10 +6,10 @@ owner @{user_config_dirs}/trashrc rw, owner @{user_config_dirs}/trashrc.lock rwk, owner @{user_config_dirs}/#@{int} rwk, - owner @{user_config_dirs}/trashrc.* rwl -> @{user_config_dirs}/#@{int}, + owner @{user_config_dirs}/trashrc.* rwl, owner @{run}/user/@{uid}/#@{int} rw, - owner @{run}/user/@{uid}/trash.so*.@{int}.slave-socket rwl -> @{run}/user/@{uid}/#@{int}, + owner @{run}/user/@{uid}/trash.so*.@{int}.slave-socket rwl, # Home trash location owner @{user_share_dirs}/Trash/{,**} rwl, diff --git a/apparmor.d/abstractions/user-download-strict b/apparmor.d/abstractions/user-download-strict index c5405d90..2a150c90 100644 --- a/apparmor.d/abstractions/user-download-strict +++ b/apparmor.d/abstractions/user-download-strict @@ -10,9 +10,9 @@ owner @{HOME}/@{XDG_DOWNLOAD_DIR}/ w, owner @{HOME}/@{XDG_DESKTOP_DIR}/ r, - owner @{HOME}/@{XDG_DESKTOP_DIR}/** rwkl -> @{HOME}/@{XDG_DESKTOP_DIR}/**, + owner @{HOME}/@{XDG_DESKTOP_DIR}/** rwkl, owner @{user_download_dirs}/ r, - owner @{user_download_dirs}/** rwkl -> @{user_download_dirs}/**, + owner @{user_download_dirs}/** rwkl, include if exists