mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
vipw-vigr: Use editor abstraction
This commit is contained in:
parent
ce329175da
commit
9349baaff4
@ -40,23 +40,11 @@ profile vipw-vigr @{exec_path} {
|
||||
|
||||
profile editor {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/app/editor>
|
||||
|
||||
capability fsetid,
|
||||
|
||||
@{bin}/sensible-editor mr,
|
||||
@{bin}/vim.* mrix,
|
||||
@{sh_path} rix,
|
||||
@{bin}/which{,.debianutils} rix,
|
||||
|
||||
owner @{HOME}/.selected_editor r,
|
||||
|
||||
/usr/share/vim/{,**} r,
|
||||
/etc/vim/{,**} r,
|
||||
owner @{HOME}/.viminfo{,.tmp} rw,
|
||||
|
||||
/etc/{passwd,shadow,gshadow,group}.edit rw,
|
||||
|
||||
}
|
||||
|
||||
include if exists <local/vipw-vigr>
|
||||
|
Loading…
Reference in New Issue
Block a user