apparmor.d/apparmor.d/groups/xfce/xfdesktop
2025-09-14 19:15:43 +02:00

45 lines
1.1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/xfdesktop
profile xfdesktop @{exec_path} {
include <abstractions/base>
include <abstractions/app-launcher-user>
include <abstractions/bus-session>
include <abstractions/fontconfig-cache-read>
include <abstractions/nameservice-strict>
include <abstractions/thumbnails-cache-read>
include <abstractions/xfce>
#aa:dbus own bus=session name=org.xfce.xfdesktop
@{exec_path} mr,
@{bin}/xfce4-mime-helper rix,
/etc/xdg/{,xdg-xubuntu/}xfce4/helpers.rc r,
/etc/xdg/menus/{,*.menu} r,
/usr/share/xfce4/helpers/{,*.desktop} r,
/usr/share/desktop-directories/{,*.directory} r,
/usr/share/backgrounds/xfce/{,**} r,
/etc/fstab r,
owner @{HOME}/@{XDG_DESKTOP_DIR}/{,**} r,
owner @{user_config_dirs}/Thunar/{,**} rw,
owner @{user_config_dirs}/xfce4/desktop/{,**} rw,
owner @{PROC}/@{pid}/mountinfo r,
deny @{user_share_dirs}/gvfs-metadata/{,*} r,
include if exists <local/xfdesktop>
}
# vim:syntax=apparmor