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>
|
|
|
|
|
2023-02-05 00:28:17 +01:00
|
|
|
@{exec_path} = @{libexec}/{,gdm/}gdm-session-worker
|
2021-04-13 15:14:23 +02:00
|
|
|
profile gdm-session-worker @{exec_path} flags=(attach_disconnected) {
|
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/authentication>
|
2022-06-03 21:38:23 +02:00
|
|
|
include <abstractions/dbus-session-strict>
|
|
|
|
include <abstractions/dbus-strict>
|
2021-04-13 15:14:23 +02:00
|
|
|
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-10-14 23:21:56 +02:00
|
|
|
signal (send) set=hup peer=xdg-permission-store,
|
|
|
|
signal (send) set=hup peer=tracker-miner,
|
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,
|
|
|
|
|
2022-06-13 00:50:58 +02:00
|
|
|
dbus (send,receive) bus=system path=/org/freedesktop/Accounts{,/User[0-9]*}
|
|
|
|
interface=org.freedesktop.{DBus.Properties,Accounts*}
|
2022-06-06 00:06:14 +02:00
|
|
|
member={GetAll,FindUserByName,SetLanguage,Changed,PropertiesChanged},
|
|
|
|
|
2022-10-14 23:21:56 +02:00
|
|
|
dbus receive bus=system path=/org/freedesktop/Accounts
|
|
|
|
interface=org.freedesktop.Accounts
|
|
|
|
member=UserAdded
|
|
|
|
peer=(name=:*, label=accounts-daemon),
|
|
|
|
|
2022-06-06 00:06:14 +02:00
|
|
|
dbus send bus=system path=/org/freedesktop/login[0-9]
|
|
|
|
interface=org.freedesktop.login[0-9].Manager
|
2022-07-21 23:37:17 +02:00
|
|
|
member={CreateSession,ReleaseSession},
|
2022-06-06 00:06:14 +02:00
|
|
|
|
2021-04-13 16:13:06 +02:00
|
|
|
@{exec_path} mrix,
|
2021-04-13 15:14:23 +02:00
|
|
|
|
2023-02-05 00:28:17 +01:00
|
|
|
@{libexec}/{,gdm/}gdm-wayland-session rPx,
|
|
|
|
@{libexec}/{,gdm/}gdm-x-session rPx,
|
2022-05-21 17:49:45 +02:00
|
|
|
/{usr/,}bin/gnome-keyring-daemon rPx,
|
|
|
|
/etc/gdm{3,}/{Pre,Post}Session/Default rix,
|
2022-06-03 21:13:11 +02:00
|
|
|
/etc/gdm{3,}/PrimeOff/Default rix,
|
|
|
|
|
|
|
|
/usr/share/gdm/gdm.schemas r,
|
|
|
|
/usr/share/wayland-sessions/*.desktop r,
|
2021-04-13 15:14:23 +02:00
|
|
|
|
2022-05-21 17:49:45 +02:00
|
|
|
/etc/default/locale r,
|
2021-04-13 15:14:23 +02:00
|
|
|
/etc/environment r,
|
2022-05-21 17:49:45 +02:00
|
|
|
/etc/gdm{3,}/custom.conf r,
|
2022-10-14 23:21:56 +02:00
|
|
|
/etc/gdm{3,}/daemon.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
|
|
|
|
2022-06-03 21:13:11 +02:00
|
|
|
owner @{run}/user/@{uid}/keyring/control rw,
|
2021-04-13 15:14:23 +02:00
|
|
|
|
|
|
|
@{run}/faillock/[a-zA-z0-9]* rwk,
|
2022-09-05 03:14:08 +02:00
|
|
|
@{run}/gdm{3,}/custom.conf r,
|
2022-11-03 22:40:01 +01:00
|
|
|
@{run}/motd.d/{,*} r,
|
2022-06-26 17:40:48 +02:00
|
|
|
@{run}/systemd/sessions/* r,
|
2022-06-01 19:54:07 +02:00
|
|
|
@{run}/systemd/sessions/*.ref rw,
|
2021-04-18 20:00:15 +02:00
|
|
|
@{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,
|
2022-05-21 17:49:45 +02:00
|
|
|
owner @{PROC}/@{pid}/task/@{tid}/attr/exec rw,
|
2021-04-13 15:14:23 +02:00
|
|
|
owner @{PROC}/@{pid}/uid_map r,
|
2022-06-25 01:16:05 +02:00
|
|
|
@{PROC}/@{pids}/cgroup r,
|
2022-05-21 17:49:45 +02:00
|
|
|
@{PROC}/1/limits r,
|
|
|
|
@{PROC}/keys r,
|
2021-04-13 15:14:23 +02:00
|
|
|
|
2022-08-19 20:05:15 +02:00
|
|
|
/dev/tty rw,
|
2021-04-13 15:14:23 +02:00
|
|
|
/dev/tty[0-9]* rw,
|
|
|
|
|
|
|
|
include if exists <local/gdm-session-worker>
|
|
|
|
}
|