mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
apt: Use editor abstraction
This commit is contained in:
parent
4256e11492
commit
98ea2fa47b
@ -153,20 +153,9 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
profile editor flags=(complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{sh_path} rix,
|
||||
@{bin}/sensible-editor mr,
|
||||
@{bin}/vim.* mrix,
|
||||
@{bin}/which{,.debianutils} rix,
|
||||
|
||||
/usr/share/vim/{,**} r,
|
||||
include <abstractions/app/editor>
|
||||
|
||||
/etc/apt/sources.list rw,
|
||||
/etc/vim/{,**} r,
|
||||
|
||||
owner @{HOME}/.viminfo{,.tmp} rw,
|
||||
owner @{HOME}/.selected_editor r,
|
||||
|
||||
include if exists <local/apt_editor>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user