From 8290c74e66505c80fb12349df5925d81efdb092b Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 17 Mar 2024 22:49:19 +0000 Subject: [PATCH] feat(profile): add some kde related profiles. --- .../groups/kde/drkonqi-coredump-cleanup | 18 +++++++++++++++ apparmor.d/groups/kde/xwaylandvideobridge | 22 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 apparmor.d/groups/kde/drkonqi-coredump-cleanup create mode 100644 apparmor.d/groups/kde/xwaylandvideobridge diff --git a/apparmor.d/groups/kde/drkonqi-coredump-cleanup b/apparmor.d/groups/kde/drkonqi-coredump-cleanup new file mode 100644 index 00000000..054a68c7 --- /dev/null +++ b/apparmor.d/groups/kde/drkonqi-coredump-cleanup @@ -0,0 +1,18 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{lib}/drkonqi-coredump-cleanup +profile drkonqi-coredump-cleanup @{exec_path} { + include + + @{exec_path} mr, + + @{user_cache_dirs}/kcrash-metadata/ r, + + include if exists +} \ No newline at end of file diff --git a/apparmor.d/groups/kde/xwaylandvideobridge b/apparmor.d/groups/kde/xwaylandvideobridge new file mode 100644 index 00000000..7a7dd6c2 --- /dev/null +++ b/apparmor.d/groups/kde/xwaylandvideobridge @@ -0,0 +1,22 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/xwaylandvideobridge +profile xwaylandvideobridge @{exec_path} { + include + include + include + include + + @{exec_path} mr, + + owner @{user_cache_dirs}/xwaylandvideobridge/ rw, + owner @{user_cache_dirs}/xwaylandvideobridge/** rwk, + + include if exists +} \ No newline at end of file