diff --git a/apparmor.d/groups/freedesktop/xdg-desktop-portal-kde b/apparmor.d/groups/freedesktop/xdg-desktop-portal-kde new file mode 100644 index 00000000..b3a7a681 --- /dev/null +++ b/apparmor.d/groups/freedesktop/xdg-desktop-portal-kde @@ -0,0 +1,38 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{libexec}/xdg-desktop-portal-kde +profile xdg-desktop-portal-kde @{exec_path} { + include + include + include + include + include + + @{exec_path} mr, + + /usr/share/hwdata/pnp.ids r, + /usr/share/mime/{,**} r, + /usr/share/qt/translations/*.qm r, + + owner @{HOME}/.Xauthority r, + owner @{HOME}/.cache/*.kcache r, + + owner @{user_cache_dirs}/icon-cache.kcache rw, + + 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, + + @{PROC}/sys/kernel/core_pattern r, + + /dev/tty r, + + include if exists +} \ No newline at end of file diff --git a/dists/flags/main.flags b/dists/flags/main.flags index fcb234d1..fdf81ee3 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -280,6 +280,7 @@ xdg-desktop-icon complain xdg-desktop-portal attach_disconnected,complain xdg-desktop-portal-gnome complain xdg-desktop-portal-gtk complain +xdg-desktop-portal-kde complain xdg-document-portal complain xdg-permission-store attach_disconnected,complain xdg-user-dirs-gtk-update complain