From c2952b1ec50cb09388650baa31be3f342d63ef11 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 6 Oct 2022 20:43:39 +0100 Subject: [PATCH] feat(profiles): more flexibility in password-store dir name. --- apparmor.d/profiles-m-r/pass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apparmor.d/profiles-m-r/pass b/apparmor.d/profiles-m-r/pass index b701b02b..c85eac18 100644 --- a/apparmor.d/profiles-m-r/pass +++ b/apparmor.d/profiles-m-r/pass @@ -57,7 +57,7 @@ profile pass @{exec_path} { owner @{HOME}/.password-store/{,**} rw, owner @{user_projects_dirs}/**/*-store/{,**} rw, - owner @{user_config_dirs}/password-store/{,**} rw, + owner @{user_config_dirs}/*-store/{,**} rw, owner /dev/shm/pass.*/{,*} rw, @{PROC}/@{pids}/cmdline r, @@ -85,7 +85,7 @@ profile pass @{exec_path} { owner @{HOME}/.password-store/ r, owner @{user_projects_dirs}/**/*-store/ r, - owner @{user_config_dirs}/password-store/ r, + owner @{user_config_dirs}/*-store/ r, owner @{user_cache_dirs}/vim/{,**} rw, owner @{user_config_dirs}/vim/{,**} rw, @@ -120,8 +120,8 @@ profile pass @{exec_path} { owner @{HOME}/.password-store/** rwkl -> @{HOME}/.password-store/**, owner @{user_projects_dirs}/**/*-store/ rw, owner @{user_projects_dirs}/**/*-store/** rwkl -> @{user_projects_dirs}/**/*-store/**, - owner @{user_config_dirs}/password-store/ rw, - owner @{user_config_dirs}/password-store/** rwkl -> @{user_config_dirs}/password-store/**, + owner @{user_config_dirs}/*-store/ rw, + owner @{user_config_dirs}/*-store/** rwkl -> @{user_config_dirs}/*-store/**, }