diff --git a/apparmor.d/profiles-m-r/mutt b/apparmor.d/profiles-m-r/mutt index dd5a85ee2..60f04211f 100644 --- a/apparmor.d/profiles-m-r/mutt +++ b/apparmor.d/profiles-m-r/mutt @@ -59,6 +59,7 @@ profile mutt @{exec_path} { /etc/Muttrc r, /etc/Muttrc.d/{*,} r, + owner @{HOME}/.mail/{,**} rwlk, owner @{HOME}/.mail_aliases r, # Common location for mail aliases owner @{HOME}/.mailcap r, owner @{HOME}/.mime.types r, @@ -97,6 +98,7 @@ profile mutt @{exec_path} { @{bin}/lynx mrix, owner @{HOME}/.w3m/* rw, + owner @{HOME}/.mail/{,**} rw, owner /{var/,}tmp/mutt* rw, @@ -109,6 +111,7 @@ profile mutt @{exec_path} { # This is the file that holds the message owner /{var/,}tmp/{.,}mutt* rw, + owner @{HOME}/.mail/{,**} rw, include if exists } @@ -123,8 +126,9 @@ profile mutt @{exec_path} { /usr/share/terminfo/** r, /usr/share/file/misc/magic.mgc r, - + owner @{HOME}/ r, + owner @{HOME}/.mail/{,**} rw, owner @{HOME}/.lesshs* rw, owner @{HOME}/.terminfo/@{int}/* r, owner @{user_cache_dirs}/lesshs* rw, @@ -150,6 +154,7 @@ profile mutt @{exec_path} { owner @{HOME}/@{XDG_GPG_DIR}/** rwkl -> @{HOME}/@{XDG_GPG_DIR}/**, owner /{var/,}tmp/mutt* lrw, + owner @{HOME}/.mail/{,**} rw, include if exists }