mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(profile): ensure xfce can start.
This commit is contained in:
parent
839f137de2
commit
ed864b6391
46
apparmor.d/groups/xfce/startxfce
Normal file
46
apparmor.d/groups/xfce/startxfce
Normal file
@ -0,0 +1,46 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/startxfce4
|
||||
profile startxfce @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/X-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sh_path} rix,
|
||||
@{bin}/cat rix,
|
||||
|
||||
@{bin}/xfce4-session rPx,
|
||||
@{bin}/xrdb rPx,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
@{bin}/dbus-update-activation-environment rCx -> dbus,
|
||||
|
||||
/etc/X11/xinit/xinitrc.d/{,**} r,
|
||||
/etc/xdg/xfce4/{,**} r,
|
||||
|
||||
profile systemctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app/systemctl>
|
||||
|
||||
include if exists <local/startxfce_systemctl>
|
||||
}
|
||||
|
||||
profile dbus {
|
||||
include <abstractions/base>
|
||||
|
||||
@{bin}/dbus-update-activation-environment mr,
|
||||
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
include if exists <local/startxfce_dbus>
|
||||
}
|
||||
|
||||
include if exists <local/startxfce>
|
||||
}
|
74
apparmor.d/groups/xfce/xfce-session
Normal file
74
apparmor.d/groups/xfce/xfce-session
Normal file
@ -0,0 +1,74 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/xfce4-session
|
||||
profile xfce-session @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app-launcher-user>
|
||||
include <abstractions/graphics>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/xfce>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sh_path} rix,
|
||||
|
||||
@{bin}/sleep rix,
|
||||
|
||||
@{bin}/dbus-update-activation-environment rCx -> dbus,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
@{lib}/legacy-dist/deprecation-popup rPUx,
|
||||
/usr/share/system-config-printer/applet.py rPx,
|
||||
#aa:exec xfce-notifyd
|
||||
#aa:exec polkit-gnome-authentication-agent
|
||||
|
||||
#aa:only whonix
|
||||
@{lib}/msgcollector/msgdispatcher_xdg_autostart rPx,
|
||||
@{lib}/sdwdate-gui/start-maybe rPx,
|
||||
@{lib}/setup-wizard-dist/setup-dist_check_for_start rPx,
|
||||
|
||||
/usr/share/kde-power-savings-disable-in-vms/{,**} r,
|
||||
/usr/share/kde-screen-locker-disable-in-vms/{,**} r,
|
||||
|
||||
#aa:only whonix
|
||||
/usr/share/anon-apps-config/{,**} r,
|
||||
/usr/share/open-link-confirmation/{,**} r,
|
||||
/usr/share/security-misc/{,**} r,
|
||||
/usr/share/torbrowser-default-browser/{,**} r,
|
||||
|
||||
/etc/xdg/ r,
|
||||
/etc/xdg/autostart/ r,
|
||||
/etc/xdg/autostart/*.desktop r,
|
||||
|
||||
owner /tmp/.xfsm-ICE-@{rand6} rw,
|
||||
owner /tmp/user/@{uid}/.xfsm-ICE-@{rand6} rw,
|
||||
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
profile systemctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app/systemctl>
|
||||
|
||||
include if exists <local/xfce-session_systemctl>
|
||||
}
|
||||
|
||||
profile dbus {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-session>
|
||||
|
||||
@{bin}/dbus-update-activation-environment mr,
|
||||
|
||||
owner @{user_share_dirs}/sddm/xorg-session.log rw,
|
||||
|
||||
include if exists <local/xfce-session_dbus>
|
||||
}
|
||||
|
||||
include if exists <local/xfce-session>
|
||||
}
|
Loading…
Reference in New Issue
Block a user