mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
Merge branch 'main' of github.com:roddhjav/apparmor.d
* 'main' of github.com:roddhjav/apparmor.d: Task: Update abstraction path Mutt: Update abstraction path Update and move abstractions/editor to abstractions/app/editor Task: Use editor abstraction Mutt: Use editor abstraction Create editor abstraction
This commit is contained in:
commit
7b25ed1913
28
apparmor.d/abstractions/app/editor
Normal file
28
apparmor.d/abstractions/app/editor
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2024 Zane Zakraisek <zz@eng.utah.edu>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
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,
|
||||||
|
|
||||||
|
owner @{HOME}/.selected_editor r,
|
||||||
|
owner @{HOME}/.viminfo{,.tmp} rw,
|
||||||
|
owner @{HOME}/.vimrc r,
|
||||||
|
|
||||||
|
# Vim swap file
|
||||||
|
owner @{HOME}/ r,
|
||||||
|
owner @{user_cache_dirs}/ r,
|
||||||
|
owner @{user_cache_dirs}/vim/** wr,
|
||||||
|
|
||||||
|
include if exists <abstractions/app/editor.d>
|
@ -105,29 +105,8 @@ profile mutt @{exec_path} {
|
|||||||
|
|
||||||
profile editor {
|
profile editor {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/app/editor>
|
||||||
|
|
||||||
@{bin}/sensible-editor mr,
|
|
||||||
@{bin}/vim mrix,
|
|
||||||
@{bin}/vim.* mrix,
|
|
||||||
@{bin}/{,ba,da}sh rix,
|
|
||||||
@{bin}/which{,.debianutils} rix,
|
|
||||||
|
|
||||||
/usr/share/vim/{,**} r,
|
|
||||||
/usr/share/terminfo/** r,
|
|
||||||
|
|
||||||
/etc/vimrc r,
|
|
||||||
/etc/vim/{,**} r,
|
|
||||||
|
|
||||||
owner @{HOME}/.selected_editor r,
|
|
||||||
owner @{HOME}/.viminfo{,.tmp} rw,
|
|
||||||
owner @{HOME}/.vimrc r,
|
|
||||||
|
|
||||||
# Vim swap file
|
|
||||||
owner @{HOME}/ r,
|
|
||||||
owner @{user_cache_dirs}/ r,
|
|
||||||
owner @{user_cache_dirs}/vim/** wr,
|
|
||||||
|
|
||||||
# This is the file that holds the message
|
# This is the file that holds the message
|
||||||
owner /{var/,}tmp/{.,}mutt* rw,
|
owner /{var/,}tmp/{.,}mutt* rw,
|
||||||
|
|
||||||
|
@ -36,28 +36,7 @@ profile task @{exec_path} {
|
|||||||
|
|
||||||
profile editor {
|
profile editor {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/app/editor>
|
||||||
|
|
||||||
@{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,
|
|
||||||
|
|
||||||
owner @{HOME}/.selected_editor r,
|
|
||||||
owner @{HOME}/.viminfo{,.tmp} rw,
|
|
||||||
owner @{HOME}/.vimrc r,
|
|
||||||
|
|
||||||
# Vim swap file
|
|
||||||
owner @{HOME}/ r,
|
|
||||||
owner @{user_cache_dirs}/ r,
|
|
||||||
owner @{user_cache_dirs}/vim/** wr,
|
|
||||||
|
|
||||||
# Taskwarrior related files
|
# Taskwarrior related files
|
||||||
owner @{HOME}/.task/ r,
|
owner @{HOME}/.task/ r,
|
||||||
|
Loading…
Reference in New Issue
Block a user