From 4d9ea026c7249c0a85786c0a6cbe5c195e2a8d36 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Wed, 1 May 2024 13:49:51 +0100 Subject: [PATCH] feat(abs): add the fish shell abstraction. --- apparmor.d/abstractions/fish | 14 ++++++++++++++ apparmor.d/abstractions/shells | 1 + 2 files changed, 15 insertions(+) create mode 100644 apparmor.d/abstractions/fish diff --git a/apparmor.d/abstractions/fish b/apparmor.d/abstractions/fish new file mode 100644 index 000000000..c5ed229c0 --- /dev/null +++ b/apparmor.d/abstractions/fish @@ -0,0 +1,14 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +# This abstraction is only required when an interactive shell is started. +# Classic shell scripts do not need it. + + /usr/share/fish/{,**} r, + + /etc/fish/{,**} r, + + owner @{user_config_dirs}/fish/{,**} r, + + include if exists diff --git a/apparmor.d/abstractions/shells b/apparmor.d/abstractions/shells index 23c447dc0..5583f599d 100644 --- a/apparmor.d/abstractions/shells +++ b/apparmor.d/abstractions/shells @@ -6,6 +6,7 @@ # Classic shell scripts do not need it. include + include include include if exists