diff --git a/apparmor.d/groups/lxqt/ControlPanel b/apparmor.d/groups/lxqt/ControlPanel new file mode 100644 index 000000000..fac3a6031 --- /dev/null +++ b/apparmor.d/groups/lxqt/ControlPanel @@ -0,0 +1,38 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# Copyright (C) 2025 Besanon +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/ControlPanel +profile ControlPanel @{exec_path} { + include + include + include + include + include + + @{exec_path} mr, + + /usr/share/desktop-directories/lxqt-* r, + + /etc/xdg/menus/lxqt-config.menu r, + + # only for xfe file manager: + owner @{HOME}/.foxrc/ rw, + owner @{HOME}/.foxrc/Desktop rw, + + owner @{user_config_dirs}/lxqt/lxqt-config.conf.lock rwk, + + owner /tmp/@{int} r, + + /dev/pts/@{int} rw, + /dev/tty rw, + + include if exists +} + +# vim:syntax=apparmor