From c08f93de5047b9f684fb7cd64a2cf3d2ef9e88f4 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 30 Jan 2024 14:16:18 +0000 Subject: [PATCH] feat(abs): add kde-strict abstraction --- apparmor.d/abstractions/kde-strict | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 apparmor.d/abstractions/kde-strict diff --git a/apparmor.d/abstractions/kde-strict b/apparmor.d/abstractions/kde-strict new file mode 100644 index 00000000..f08d66cf --- /dev/null +++ b/apparmor.d/abstractions/kde-strict @@ -0,0 +1,34 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + + abi , + + include + include + include + include + include + + @{lib}/kde{,3,4}/*.so mr, + @{lib}/kde{,3,4}/plugins/*/ r, + @{lib}/kde{,3,4}/plugins/*/*.so mr, + + /usr/share/hwdata/pnp.ids r, + /usr/share/icu/@{int}.@{int}/*.dat r, + + /etc/xdg/kdeglobals r, + /etc/xdg/kwinrc r, + + owner @{HOME}/.local/ rw, + owner @{user_cache_dirs}/ rw, + owner @{user_config_dirs}/ rw, + owner @{user_share_dirs}/ rw, + + owner @{user_config_dirs}/kdedefaults/ r, + owner @{user_config_dirs}/kdedefaults/kdeglobals r, + owner @{user_config_dirs}/kdedefaults/kwinrc r, + owner @{user_config_dirs}/kdeglobals r, + owner @{user_config_dirs}/kwinrc r, + + include if exists