2021-07-31 20:21:52 +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/,}bin/gnome-control-center
|
|
|
|
profile gnome-control-center @{exec_path} flags=(attach_disconnected) {
|
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/audio>
|
|
|
|
include <abstractions/dri-common>
|
|
|
|
include <abstractions/dri-enumerate>
|
|
|
|
include <abstractions/gnome>
|
|
|
|
include <abstractions/gstreamer>
|
|
|
|
include <abstractions/nameservice-strict>
|
2021-12-12 13:41:50 +01:00
|
|
|
include <abstractions/opencl-nvidia>
|
2021-07-31 20:21:52 +02:00
|
|
|
include <abstractions/openssl>
|
|
|
|
include <abstractions/p11-kit>
|
|
|
|
include <abstractions/ssl_certs>
|
|
|
|
|
|
|
|
network inet dgram,
|
|
|
|
network inet6 dgram,
|
|
|
|
network inet stream,
|
|
|
|
network inet6 stream,
|
|
|
|
network netlink raw,
|
|
|
|
|
|
|
|
signal (send) set=(kill) peer=unconfined,
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/bwrap rPUx,
|
|
|
|
/{usr/,}bin/gcm-viewer rix,
|
|
|
|
/{usr/,}bin/locale rix,
|
|
|
|
/{usr/,}bin/openvpn rPx,
|
|
|
|
/{usr/,}lib/gnome-control-center-print-renderer rPx,
|
|
|
|
/{usr/,}lib/webkit2gtk-{3,4}.0/WebKitNetworkProcess rix,
|
|
|
|
|
|
|
|
/usr/share/backgrounds/gnome/* r,
|
2022-02-16 20:18:14 +01:00
|
|
|
/usr/share/egl/{,**} r,
|
2021-07-31 20:21:52 +02:00
|
|
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
|
|
|
/usr/share/glvnd/egl_vendor.d/{,*.json} r,
|
|
|
|
/usr/share/gnome-background-properties/{,**} r,
|
|
|
|
/usr/share/gnome-bluetooth/{,**} r,
|
|
|
|
/usr/share/gnome-color-manager/{,**} r,
|
|
|
|
/usr/share/gnome-shell/search-providers/{,**} r,
|
|
|
|
/usr/share/gnome/gnome-version.xml r,
|
|
|
|
/usr/share/mime/{,**} r,
|
|
|
|
/usr/share/pipewire/client.conf r,
|
|
|
|
/usr/share/thumbnailers/{,*} r,
|
|
|
|
/usr/share/xml/iso-codes/iso_[0-9]*-[0-9]*.xml r,
|
|
|
|
/usr/share/zoneinfo/{,**} r,
|
|
|
|
|
2022-03-26 21:43:47 +01:00
|
|
|
/etc/pipewire/client.conf.d/ r,
|
|
|
|
/etc/security/pwquality.conf r,
|
|
|
|
/etc/security/pwquality.conf.d/{,**} r,
|
|
|
|
|
2021-07-31 20:21:52 +02:00
|
|
|
/etc/machine-id r,
|
|
|
|
/var/lib/dbus/machine-id r,
|
|
|
|
|
2021-08-14 13:59:24 +02:00
|
|
|
owner @{HOME}/.cat_installer/ca.pem r,
|
2021-07-31 20:21:52 +02:00
|
|
|
owner @{HOME}/@{XDG_WALLPAPERS_DIR}/{,**} r,
|
|
|
|
owner @{user_cache_dirs}/gnome-control-center/{,**} rw,
|
|
|
|
owner @{user_cache_dirs}/mesa_shader_cache/index rw,
|
|
|
|
owner @{user_cache_dirs}/thumbnails/{,**} rw,
|
|
|
|
owner @{user_config_dirs}/gnome-control-center/{,**} rw,
|
2021-09-19 21:37:32 +02:00
|
|
|
owner @{user_config_dirs}/ibus/bus/{,[0-9a-f]*-unix-wayland-[0-9]} r,
|
2021-07-31 20:21:52 +02:00
|
|
|
owner @{user_share_dirs}/backgrounds/{,**} rw,
|
2021-11-04 19:33:25 +01:00
|
|
|
owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
2021-07-31 20:21:52 +02:00
|
|
|
owner @{user_share_dirs}/icc/{,edid-*} r,
|
|
|
|
owner @{user_share_dirs}/webkitgtk/{,**} r,
|
|
|
|
owner @{user_share_dirs}/webkitgtk/databases/indexeddb/* rw,
|
|
|
|
owner @{user_share_dirs}/webkitgtk/localstorage/{,**} rwk,
|
|
|
|
|
|
|
|
include <abstractions/dconf>
|
|
|
|
owner @{run}/user/@{uid}/dconf/ rw,
|
|
|
|
owner @{run}/user/@{uid}/dconf/user rw,
|
|
|
|
|
2021-08-14 13:59:24 +02:00
|
|
|
owner @{run}/user/@{uid}/gnome-shell-disable-extensions w,
|
2021-07-31 20:21:52 +02:00
|
|
|
owner @{run}/user/@{uid}/webkitgtk/{,**} rw,
|
|
|
|
@{run}/systemd/users/@{uid} r,
|
|
|
|
@{run}/systemd/sessions/ r,
|
|
|
|
@{run}/systemd/sessions/[0-9]* r,
|
|
|
|
|
|
|
|
@{run}/udev/data/+input* r, # for mouse, keyboard, touchpad
|
|
|
|
@{run}/udev/data/+pci* r,
|
|
|
|
@{run}/udev/data/c13:[0-9]* r, # for /dev/input/*
|
2021-08-14 13:59:24 +02:00
|
|
|
@{run}/udev/data/c235:[0-9]* r,
|
2021-08-22 16:32:42 +02:00
|
|
|
@{run}/udev/data/c236:[0-9]* r,
|
2022-03-18 17:05:36 +01:00
|
|
|
@{run}/udev/data/c50[0-9]:[0-9]* r,
|
2021-09-26 18:28:26 +02:00
|
|
|
@{run}/udev/data/c51[0-9]:[0-9]* r,
|
2021-07-31 20:21:52 +02:00
|
|
|
@{run}/udev/data/n[0-9]* r,
|
|
|
|
|
|
|
|
@{sys}/bus/ r,
|
|
|
|
@{sys}/class/ r,
|
|
|
|
@{sys}/class/input/ r,
|
|
|
|
@{sys}/devices/**/{name,vendor,product,uevent} r,
|
|
|
|
@{sys}/devices/pci[0-9]*/**/drm/ r,
|
2022-03-13 22:04:42 +01:00
|
|
|
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]*/**/id r,
|
|
|
|
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]*/gt_*_mhz r,
|
2022-04-07 21:53:35 +02:00
|
|
|
@{sys}/devices/pci[0-9]*/**/revision r,
|
|
|
|
@{sys}/devices/platform/**/uevent r,
|
|
|
|
@{sys}/devices/virtual/**/uevent r,
|
2021-07-31 20:21:52 +02:00
|
|
|
@{sys}/devices/virtual/dmi/id/chassis_type r,
|
2021-09-26 18:28:26 +02:00
|
|
|
@{sys}/devices/virtual/thermal/thermal_zone[0-9]/hwmon[0-9]/temp* r,
|
2021-07-31 20:21:52 +02:00
|
|
|
|
|
|
|
owner @{sys}/fs/cgroup/user.slice/user-[0-9]*.slice/user@[0-9]*.service/{,**} rw,
|
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
|
|
owner @{PROC}/@{pid}/cmdline r,
|
2021-12-12 13:41:50 +01:00
|
|
|
owner @{PROC}/@{pid}/comm r,
|
2021-07-31 20:21:52 +02:00
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
owner @{PROC}/@{pid}/stat r,
|
|
|
|
owner @{PROC}/@{pid}/statm r,
|
|
|
|
owner @{PROC}/@{pid}/task/*/comm rw,
|
|
|
|
@{PROC}/cmdline r,
|
|
|
|
@{PROC}/sys/dev/i915/perf_stream_paranoid r,
|
|
|
|
@{PROC}/zoneinfo r,
|
|
|
|
|
|
|
|
/dev/ r,
|
2022-03-02 19:22:57 +01:00
|
|
|
/dev/media[0-9]* r,
|
2021-07-31 20:21:52 +02:00
|
|
|
/dev/video[0-9]* rw,
|
|
|
|
|
|
|
|
include if exists <local/gnome-control-center>
|
|
|
|
}
|