apparmor.d/apparmor.d/groups/gnome/gdm-session-worker

76 lines
1.9 KiB
Plaintext
Raw Normal View History

2021-04-13 15:14:23 +02:00
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/gdm-session-worker
profile gdm-session-worker @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/authentication>
include <abstractions/nameservice-strict>
capability audit_write,
capability chown,
capability dac_override,
capability dac_read_search,
capability fowner,
capability kill,
capability net_admin,
capability setgid,
capability setuid,
capability sys_nice,
2022-02-09 20:35:18 +01:00
capability sys_resource,
2021-04-13 15:14:23 +02:00
capability sys_tty_config,
2021-04-29 22:02:28 +02:00
signal (receive) set=term peer=gdm,
2021-08-14 13:59:24 +02:00
signal (send) set=hup peer=at-spi*,
2021-04-29 22:02:28 +02:00
signal (send) set=hup peer=dbus-daemon,
2022-03-27 15:25:29 +02:00
signal (send) set=hup peer=dbus-run-session,
2021-04-29 22:02:28 +02:00
signal (send) set=hup peer=gjs-console,
2021-04-15 23:51:21 +02:00
signal (send) set=hup peer=gnome-*,
2021-04-29 22:02:28 +02:00
signal (send) set=hup peer=gsd-*,
signal (send) set=hup peer=ibus-*,
2022-03-27 15:25:29 +02:00
signal (send) set=hup peer=xorg,
2021-04-15 23:51:21 +02:00
signal (send) set=hup peer=xwayland,
2022-02-08 20:49:31 +01:00
signal (send) set=term peer=gdm-*-session,
2021-04-13 15:14:23 +02:00
network netlink raw,
2021-04-13 16:13:06 +02:00
@{exec_path} mrix,
2021-04-13 15:14:23 +02:00
/{usr/,}bin/gnome-keyring-daemon rPx,
/{usr/,}lib/gdm-wayland-session rPx,
/{usr/,}lib/gdm-x-session rPx,
/etc/gdm/{Pre,Post}Session/Default rix,
/etc/environment r,
/etc/gdm/custom.conf r,
2022-02-08 20:49:31 +01:00
/etc/locale.conf r,
/etc/machine-id r,
/etc/motd r,
/etc/motd.d/ r,
2021-04-13 15:14:23 +02:00
/etc/security/limits.d/{,*.conf} r,
2022-02-08 20:49:31 +01:00
/etc/shells r,
2021-04-13 15:14:23 +02:00
/usr/share/gdm/gdm.schemas r,
2021-04-15 23:51:21 +02:00
/usr/share/wayland-sessions/*.desktop r,
2021-04-13 15:14:23 +02:00
@{run}/faillock/[a-zA-z0-9]* rwk,
2021-12-12 13:41:50 +01:00
@{run}/gdm/custom.conf r,
2021-05-08 20:06:48 +02:00
@{run}/systemd/sessions/[0-9]*.ref rw,
@{run}/systemd/users/@{uid} r,
2021-04-13 15:14:23 +02:00
@{run}/utmp rwk,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/loginuid rw,
owner @{PROC}/@{pid}/uid_map r,
/dev/tty rw,
/dev/tty[0-9]* rw,
include if exists <local/gdm-session-worker>
}