From 98ea2fa47b52ca8b78e579375a1b11297ba4a6ae Mon Sep 17 00:00:00 2001 From: doublez13 Date: Thu, 16 May 2024 07:33:43 -0600 Subject: [PATCH] apt: Use editor abstraction --- apparmor.d/groups/apt/apt | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/apparmor.d/groups/apt/apt b/apparmor.d/groups/apt/apt index 493b01ec..5fe18632 100644 --- a/apparmor.d/groups/apt/apt +++ b/apparmor.d/groups/apt/apt @@ -153,20 +153,9 @@ profile apt @{exec_path} flags=(attach_disconnected) { profile editor flags=(complain) { include - include - - @{sh_path} rix, - @{bin}/sensible-editor mr, - @{bin}/vim.* mrix, - @{bin}/which{,.debianutils} rix, - - /usr/share/vim/{,**} r, + include /etc/apt/sources.list rw, - /etc/vim/{,**} r, - - owner @{HOME}/.viminfo{,.tmp} rw, - owner @{HOME}/.selected_editor r, include if exists }