From 10fd4ed8dd736bb6a2ed5a7632ea330462ab025d Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 5 Feb 2022 20:56:38 +0000 Subject: [PATCH] Add aa-enabled profile. --- apparmor.d/profiles-a-f/aa-enabled | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 apparmor.d/profiles-a-f/aa-enabled diff --git a/apparmor.d/profiles-a-f/aa-enabled b/apparmor.d/profiles-a-f/aa-enabled new file mode 100644 index 00000000..0fc8180e --- /dev/null +++ b/apparmor.d/profiles-a-f/aa-enabled @@ -0,0 +1,20 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/aa-enabled +profile aa-enabled @{exec_path} { + include + + @{exec_path} mr, + + @{sys}/module/apparmor/parameters/enabled r, + + owner @{PROC}/@{pid}/mounts r, + + include if exists +} \ No newline at end of file