mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
166 lines
7.0 KiB
Plaintext
166 lines
7.0 KiB
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/gnome-session-binary
|
|
profile gnome-session-binary @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/bus-accessibility>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/bus-system>
|
|
include <abstractions/bus/org.a11y>
|
|
include <abstractions/bus/org.freedesktop.login1.Session>
|
|
include <abstractions/bus/org.freedesktop.login1>
|
|
include <abstractions/bus/org.freedesktop.systemd1-session>
|
|
include <abstractions/bus/org.gnome.Mutter.IdleMonitor>
|
|
include <abstractions/bus/org.gnome.ScreenSaver>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/gnome-strict>
|
|
include <abstractions/graphics>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network netlink raw,
|
|
|
|
signal (receive) set=(cont, term, hup) peer=systemd-user,
|
|
signal (receive) set=(hup) peer=@{systemd},
|
|
signal (receive) set=(term, hup) peer=gdm*,
|
|
signal (send) set=(term) peer=at-spi-bus-launcher,
|
|
signal (send) set=(term) peer=gsd-*,
|
|
|
|
# dbus: own bus=session name=org.gnome.SessionManager
|
|
|
|
dbus send bus=session path=/org/freedesktop/DBus
|
|
interface=org.freedesktop.DBus
|
|
member={GetConnectionUnixUser,GetConnectionUnixProcessID,UpdateActivationEnvironment}
|
|
peer=(name=org.freedesktop.DBus label=dbus-daemon),
|
|
|
|
dbus send bus=system path=/org/freedesktop/login1
|
|
interface=org.freedesktop.login1.Manager
|
|
member={CanPowerOff,PowerOff,Reboot}
|
|
peer=(name=:*, label=systemd-logind),
|
|
|
|
dbus send bus=session path=/org/freedesktop/systemd1
|
|
interface=org.freedesktop.systemd1.Manager
|
|
peer=(name=org.freedesktop.systemd1, label=@{systemd}),
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/{,z,ba,da}sh rix,
|
|
@{bin}/env rix,
|
|
@{bin}/gnome-session rix,
|
|
@{bin}/grep rix,
|
|
@{bin}/gsettings rPx,
|
|
@{bin}/gsettings-data-convert rix,
|
|
@{bin}/mkdir rix,
|
|
@{bin}/session-migration rix,
|
|
@{bin}/touch rix,
|
|
@{bin}/xdg-user-dirs-gtk-update rix,
|
|
@{lib}/{,gnome-shell/}gnome-shell-overrides-migration.sh rix,
|
|
@{lib}/at-spi-bus-launcher rPx,
|
|
@{lib}/gnome-session-check-accelerated rix,
|
|
@{lib}/gnome-session-check-accelerated-gl-helper rix,
|
|
@{lib}/gnome-session-check-accelerated-gles-helper rix,
|
|
@{lib}/gnome-session-failed rix,
|
|
@{lib}/gsd-* rPx,
|
|
|
|
@{lib}/gio-launch-desktop rix,
|
|
@{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop rix,
|
|
|
|
@{bin}/aa-notify rPx,
|
|
@{bin}/baloo_file rPx,
|
|
@{bin}/blueman-applet rPx,
|
|
@{bin}/firewall-applet rPUx,
|
|
@{bin}/gnome-keyring-daemon rPx,
|
|
@{bin}/gnome-shell rPx,
|
|
@{bin}/gnome-software rPUx,
|
|
@{bin}/im-launch rPx,
|
|
@{bin}/keepassxc rPx,
|
|
@{bin}/parcellite rPUx,
|
|
@{bin}/pkcs11-register rPx,
|
|
@{bin}/snap rPUx,
|
|
@{bin}/snapshot-detect rPUx,
|
|
@{bin}/spice-vdagent rPx,
|
|
@{bin}/start-pulseaudio-x11 rPx,
|
|
@{bin}/ubuntu-report rPx,
|
|
@{bin}/update-notifier rPx,
|
|
@{bin}/xbrlapi rPx,
|
|
@{bin}/xdg-user-dirs-update rPx,
|
|
@{lib}/@{multiarch}/libexec/kdeconnectd rPUx,
|
|
@{lib}/@{multiarch}/xapps/sn-watcher/xapp-sn-watcher rPUx,
|
|
@{lib}/baloo_file rPx,
|
|
@{lib}/caribou/caribou rPUx,
|
|
@{lib}/deja-dup/deja-dup-monitor rPUx,
|
|
@{lib}/evolution-data-server/{,evolution-data-server/}evolution-alarm-notify rPx,
|
|
@{lib}/gsd-disk-utility-notify rPx,
|
|
@{lib}/thunderbird/thunderbird rPx,
|
|
@{lib}/update-notifier/ubuntu-advantage-notification rPx,
|
|
@{lib}/xapps/sn-watcher/* rPUx,
|
|
/{usr/,}share/libpam-kwallet-common/pam_kwallet_init rPUx,
|
|
|
|
/usr/share/dconf/profile/gdm r,
|
|
/usr/share/gdm/greeter-dconf-defaults r,
|
|
/usr/share/gdm/greeter/applications/{,**} r,
|
|
/usr/share/gdm/greeter/autostart/{,*.desktop} r,
|
|
/usr/share/gnome-session/hardware-compatibility r,
|
|
/usr/share/gnome-session/sessions/*.session r,
|
|
/usr/share/gnome/autostart/{,*.desktop} r,
|
|
/usr/share/session-migration/scripts/{,*} r,
|
|
|
|
@{etc_ro}/xdg/autostart/{,*.desktop} r,
|
|
|
|
/var/lib/gdm{3,}/.cache/gdm/Xauthority r,
|
|
/var/lib/gdm{3,}/.cache/mesa_shader_cache/index rw,
|
|
/var/lib/gdm{3,}/.config/dconf/user rw,
|
|
/var/lib/gdm{3,}/.config/gnome-session/ rw,
|
|
/var/lib/gdm{3,}/.config/gnome-session/saved-session/ rw,
|
|
/var/lib/gdm{3,}/.local/share/applications/{,**} r,
|
|
/var/lib/gdm{3,}/.local/share/session_migration-* r,
|
|
/var/lib/gdm{3,}/greeter-dconf-defaults r,
|
|
|
|
/var/lib/flatpak/exports/share/applications/{,**} r,
|
|
/var/lib/flatpak/exports/share/mime/mime.cache r,
|
|
/var/lib/snapd/desktop/applications/{,mimeinfo.cache} r,
|
|
|
|
owner /tmp/dirs-@{rand6} rw,
|
|
|
|
owner @{user_config_dirs}/autostart/{,*.desktop} r,
|
|
owner @{user_config_dirs}/gnome-session/ rw,
|
|
owner @{user_config_dirs}/gnome-session/saved-session/ rw,
|
|
owner @{user_config_dirs}/gtk-3.0/bookmarks rw,
|
|
owner @{user_config_dirs}/gtk-3.0/bookmarks.[0-9A-Z]* rw,
|
|
owner @{user_config_dirs}/user-dirs.locale r,
|
|
owner @{user_share_dirs}/gnome-shell/gnome-overrides-migrated rw,
|
|
owner @{user_share_dirs}/session_migration-ubuntu r,
|
|
|
|
@{run}/systemd/inhibit/[0-9]*.ref rw,
|
|
@{run}/systemd/sessions/* r,
|
|
@{run}/systemd/sessions/*.ref rw,
|
|
@{run}/systemd/users/@{uid} r,
|
|
owner @{run}/user/@{uid}/gnome-session-leader-fifo rw,
|
|
owner @{run}/user/@{uid}/ICEauthority{,-[a-z]} rwl,
|
|
owner @{run}/user/@{uid}/systemd/notify w,
|
|
|
|
@{sys}/devices/**/{vendor,device} r,
|
|
|
|
@{PROC}/@{pid}/cgroup r,
|
|
@{PROC}/cmdline r,
|
|
@{PROC}/sys/net/ipv{4,6}/conf/all/disable_ipv{4,6} r,
|
|
owner @{PROC}/@{pid}/cmdline r,
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/loginuid r,
|
|
|
|
/dev/tty rw,
|
|
/dev/tty@{int} rw,
|
|
|
|
include if exists <usr/gnome-session-binary.d>
|
|
include if exists <local/gnome-session-binary>
|
|
}
|