mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
git: Use editor abstraction
This commit is contained in:
parent
192d227c50
commit
a291ce373a
1 changed files with 3 additions and 21 deletions
|
@ -165,30 +165,12 @@ profile git @{exec_path} {
|
|||
|
||||
profile editor {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{bin}/sensible-editor mr,
|
||||
@{bin}/vim mrix,
|
||||
@{bin}/vim.* mrix,
|
||||
@{sh_path} rix,
|
||||
@{bin}/which{,.debianutils} rix,
|
||||
|
||||
/usr/share/vim/{,**} r,
|
||||
/usr/share/terminfo/** r,
|
||||
|
||||
/etc/vimrc r,
|
||||
/etc/vim/{,**} r,
|
||||
|
||||
include <abstractions/app/editor>
|
||||
|
||||
owner @{user_projects_dirs}/**/ r,
|
||||
owner @{user_projects_dirs}/**/.git/@{int} rw,
|
||||
owner @{user_projects_dirs}/**/.git/*MSG rw,
|
||||
|
||||
owner @{HOME}/.selected_editor r,
|
||||
owner @{HOME}/.viminfo{,.tmp} rw,
|
||||
|
||||
owner @{user_cache_dirs}/vim/{,**} rw,
|
||||
owner @{user_config_dirs}/vim/{,**} r,
|
||||
|
||||
|
||||
# The git repository files
|
||||
owner @{user_build_dirs}/ r,
|
||||
owner @{user_build_dirs}/** rw,
|
||||
|
|
Loading…
Reference in a new issue