60 lines
1.6 KiB
Text
60 lines
1.6 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/gnome-terminal-server
|
|
profile gnome-terminal-server @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/bus/atspi>
|
|
include <abstractions/consoles>
|
|
include <abstractions/dbus-session-strict>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/fonts>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/gtk>
|
|
include <abstractions/wayland>
|
|
|
|
signal (send) set=(term hup kill) peer=unconfined,
|
|
ptrace (read) peer=unconfined,
|
|
|
|
dbus bind bus=session name=org.gnome.Terminal,
|
|
|
|
@{exec_path} mr,
|
|
|
|
# The shell is not confined on purpose.
|
|
@{bin}/{,b,d,rb}ash rUx,
|
|
@{bin}/{c,k,tc,z}sh rUx,
|
|
|
|
# Some CLI program can be launched directly from Gnome Shell
|
|
@{bin}/htop rPx,
|
|
@{bin}/micro rPUx,
|
|
@{bin}/nvtop rPx,
|
|
|
|
@{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open,
|
|
@{lib}/gio-launch-desktop rPx -> child-open,
|
|
|
|
/usr/share/icu/@{int}.@{int}/*.dat r,
|
|
/usr/share/X11/xkb/{,**} r,
|
|
|
|
/var/lib/flatpak/exports/share/icons/{,**} r,
|
|
/var/lib/snapd/desktop/icons/{,**} r,
|
|
|
|
/etc/shells r,
|
|
|
|
owner @{user_config_dirs}/*xdg-terminals.list* rw,
|
|
|
|
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
|
|
|
owner /tmp/#@{int} rw,
|
|
|
|
@{PROC}/@{pids}/cmdline r,
|
|
@{PROC}/@{pids}/cgroup r,
|
|
|
|
/dev/ptmx rw,
|
|
|
|
include if exists <local/gnome-terminal-server>
|
|
}
|