53 lines
1.3 KiB
Text
53 lines
1.3 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} = @{libexec}/gnome-terminal-server
|
|
profile gnome-terminal-server @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/dbus-session-strict>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/fonts>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/gtk>
|
|
|
|
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.
|
|
/{usr/,}bin/{,b,d,rb}ash rUx,
|
|
/{usr/,}bin/{c,k,tc,z}sh rUx,
|
|
|
|
# Some CLI program can be launched directly from Gnome Shell
|
|
/{usr/,}bin/htop rPx,
|
|
|
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
|
/usr/share/X11/xkb/{,**} r,
|
|
|
|
/var/lib/flatpak/exports/share/icons/{,**} r,
|
|
/var/lib/snapd/desktop/icons/{,**} r,
|
|
|
|
/etc/shells r,
|
|
|
|
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
|
owner @{run}/user/@{uid}/wayland-[0-9]* rw,
|
|
|
|
owner /tmp/#[0-9]* rw,
|
|
|
|
@{PROC}/@{pids}/cmdline r,
|
|
@{PROC}/@{pids}/cgroup r,
|
|
|
|
/dev/ptmx rw,
|
|
|
|
include if exists <local/gnome-terminal-server>
|
|
}
|