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..10bf2538a --- /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) 2025 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} { + include + include + include + include + include + include + + network inet dgram, + network inet6 dgram, + network inet stream, + network inet6 stream, + network netlink raw, + + @{exec_pathxdlx} mr, + + owner @{HOME}/ r, + + owner @{desktop_config_dirs}/user-dirs.dirs r, + + owner @{user_cache_dirs}/xdg-desktop-portal-lxqt/{,**} rw, + + /dev/tty r, + + include if exists +} + +# vim:syntax=apparmor