* 'xfce' of github.com:nobody43/apparmor.d: xfce, fixes Adapt to RO root xfce, flags xfce, proper abi xfce, new profiles xfce, updates
62 lines
1.4 KiB
Text
62 lines
1.4 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}/xfce4-terminal
|
|
profile xfce-terminal @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/bus-accessibility>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/bus-system>
|
|
include <abstractions/audio-client>
|
|
include <abstractions/consoles>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/graphics>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/xfce>
|
|
|
|
signal send,
|
|
|
|
#aa:dbus own bus=session name=org.xfce.Terminal5
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{open_path} rPx -> child-open-help,
|
|
|
|
# The shell is not confined on purpose.
|
|
@{bin}/@{shells} rUx,
|
|
|
|
# Some CLI program can be launched directly from Gnome Shell
|
|
@{bin}/htop rPx,
|
|
@{bin}/micro rPUx,
|
|
@{bin}/nvtop rPx,
|
|
|
|
@{editor_path} rPUx,
|
|
|
|
/usr/share/ r,
|
|
/usr/share/desktop-base/profiles/xdg-config/ r,
|
|
/usr/share/xfce4/ r,
|
|
/usr/share/xfce4/terminal/{,**} r,
|
|
|
|
/etc/fstab r,
|
|
/etc/xdg/ r,
|
|
/etc/xdg/xfce4/ r,
|
|
|
|
owner @{user_config_dirs}/xfce4/ r,
|
|
owner @{user_config_dirs}/xfce4/terminal/{,**} r,
|
|
|
|
owner @{tmp}/#@{int} rw,
|
|
|
|
@{PROC}/@{pid}/cgroup r,
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
/dev/ptmx rw,
|
|
|
|
include if exists <local/xfce-terminal>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|