diff --git a/apparmor.d/profiles-m-r/mutt b/apparmor.d/profiles-m-r/mutt index 3367f75a..9ff28b44 100644 --- a/apparmor.d/profiles-m-r/mutt +++ b/apparmor.d/profiles-m-r/mutt @@ -41,9 +41,9 @@ profile mutt @{exec_path} { @{bin}/vim.* rCx -> editor, @{bin}/sensible-editor rCx -> editor, - @{bin}/less rPx -> child-pager, - @{bin}/more rPx -> child-pager, - @{bin}/pager rPx -> child-pager, + @{bin}/less rCx -> pager, + @{bin}/more rCx -> pager, + @{bin}/pager rCx -> pager, @{bin}/gpg{2,} rCx -> gpg, @{bin}/gpgconf rCx -> gpg, @@ -134,6 +134,30 @@ profile mutt @{exec_path} { include if exists } + profile pager { + include + include + + @{bin}/less mr, + @{bin}/more mr, + @{bin}/pager mr, + + /usr/share/terminfo/** r, + /usr/share/file/misc/magic.mgc r, + + owner @{HOME}/ r, + owner @{HOME}/.lesshs* rw, + owner @{HOME}/.terminfo/@{int}/* r, + owner @{user_cache_dirs}/lesshs* rw, + owner @{user_state_dirs}/ r, + owner @{user_state_dirs}/lesshs* rw, + + # This is the file that holds the message + owner /{var/,}tmp/mutt* rw, + + include if exists + } + profile gpg { include include