From e0fc80aaa959dc1245c7ab0b8e859684dfe54e09 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 10 Mar 2023 10:26:00 +0000 Subject: [PATCH] feat(profiles): add onefetch and gping. --- apparmor.d/profiles-g-l/gping | 19 +++++++++++++++++++ apparmor.d/profiles-m-r/onefetch | 26 ++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 apparmor.d/profiles-g-l/gping create mode 100644 apparmor.d/profiles-m-r/onefetch diff --git a/apparmor.d/profiles-g-l/gping b/apparmor.d/profiles-g-l/gping new file mode 100644 index 00000000..2d7acc2a --- /dev/null +++ b/apparmor.d/profiles-g-l/gping @@ -0,0 +1,19 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/gping +profile gping @{exec_path} { + include + include + + @{exec_path} mr, + + /{usr/,}bin/ping rPx, + + include if exists +} \ No newline at end of file diff --git a/apparmor.d/profiles-m-r/onefetch b/apparmor.d/profiles-m-r/onefetch new file mode 100644 index 00000000..5629b090 --- /dev/null +++ b/apparmor.d/profiles-m-r/onefetch @@ -0,0 +1,26 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/onefetch +profile onefetch @{exec_path} { + include + include + include + + @{exec_path} mr, + + /{usr/,}bin/git rPx, + + owner @{user_config_dirs}/git/{,**} r, + owner @{user_projects_dirs}/{,**} r, + + owner @{PROC}/@{pid}/cgroup r, + owner @{PROC}/@{pid}/stat r, + + include if exists +} \ No newline at end of file