apparmor/profiles/apparmor.d/plasmashell
Christian Boltz 64469afa2c
Add openSUSE path to plasmashell profile
While on it,
- add some comments explaining what the profile does
- adjust the rule with the Debian/Ubuntu path to work with Qt6

Fixes: https://bugzilla.opensuse.org/show_bug.cgi?id=1225961
2024-06-04 21:24:53 +02:00

47 lines
1,005 B
Text

abi <abi/4.0>,
include <tunables/global>
profile plasmashell /usr/bin/plasmashell {
include <abstractions/dbus-session>
capability,
userns,
network,
dbus,
mount,
umount,
remount,
signal,
mqueue,
unix,
ptrace,
# allow executing QtWebEngineProcess with full permissions including userns (using profile stacking to avoid no_new_privs issues)
/usr/lib/x86_64-linux-gnu/qt[56]/libexec/QtWebEngineProcess cx -> &plasmashell//QtWebEngineProcess,
/usr/libexec/qt[56]/QtWebEngineProcess cx -> &plasmashell//QtWebEngineProcess,
# allow to execute all other programs under their own profile, or to run unconfined
/** pux,
/{,**} mrwlk,
profile QtWebEngineProcess {
capability,
userns,
network,
dbus,
mount,
umount,
remount,
signal,
mqueue,
unix,
ptrace,
/** pux,
/{,**} mrwlk,
}
# Site-specific additions and overrides. See local/README for details.
include if exists <local/plasmashell>
}