diff --git a/apparmor.d/groups/freedesktop/xdg-desktop-portal-lxqt b/apparmor.d/groups/freedesktop/xdg-desktop-portal-lxqt new file mode 100644 index 000000000..b8073958a --- /dev/null +++ b/apparmor.d/groups/freedesktop/xdg-desktop-portal-lxqt @@ -0,0 +1,39 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023-2024 Alexandre Pujol +# Copyright (C) 2024 Besanon +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{lib}/xdg-desktop-portal-lxqt +@{exec_path} += @{lib}/@{multiarch}/{,libexec/}xdg-desktop-portal-lxqt +profile xdg-desktop-portal-lxqt @{exec_path} flags=(complain) { + include + include + include + include + include + + network inet dgram, + network inet6 dgram, + network inet stream, + network inet6 stream, + network netlink raw, + + @{exec_path} mr, + + owner @{user_cache_dirs}/*.kcache r, + + owner @{user_cache_dirs}/icon-cache.kcache rw, + + owner @{user_config_dirs}/autostart/org.kde.*.desktop r, + owner @{user_config_dirs}/xdg-desktop-portal-kderc r, + + @{PROC}/sys/kernel/core_pattern r, + + /dev/tty r, + + include if exists +}