mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-11 23:07:25 +01:00
fix(profile): ensure mutt pager can read its local storage.
Revert some mutt related change from 0619f4dcec
See #309
This commit is contained in:
parent
d07e63d506
commit
751bc683d9
1 changed files with 27 additions and 3 deletions
|
@ -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 <local/mutt_editor>
|
||||
}
|
||||
|
||||
profile pager {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
@{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 <local/mutt_pager>
|
||||
}
|
||||
|
||||
profile gpg {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
|
Loading…
Reference in a new issue