mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profiles): general update.
This commit is contained in:
parent
802cfb3278
commit
e6c91fdfd7
@ -8,6 +8,8 @@
|
||||
# The /sys/ entries probably should be tightened
|
||||
|
||||
/dev/ r,
|
||||
/dev/block/ r,
|
||||
/dev/disk/{,*/} r,
|
||||
|
||||
# Regular disk/partition devices
|
||||
/dev/{s,v}d[a-z]* rwk,
|
||||
|
@ -28,6 +28,7 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
capability sys_nice,
|
||||
capability sys_ptrace,
|
||||
|
||||
signal (send) peer=apt-methods-*,
|
||||
|
||||
@ -46,7 +47,7 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
member=Inhibit
|
||||
peer=(name=org.freedesktop.login[0-9]),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/DBus
|
||||
dbus send bus=system path=/org/freedesktop/DBus{,/Bus}
|
||||
interface=org.freedesktop.DBus{,.Introspectable}
|
||||
member={RequestName,GetConnectionUnixProcessID,Introspect}
|
||||
peer=(name=org.freedesktop.DBus),
|
||||
@ -101,6 +102,7 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
/{usr/,}lib/ubuntu-advantage/apt-esm-json-hook rPx,
|
||||
/{usr/,}lib/update-notifier/update-motd-updates-available rPx,
|
||||
/usr/share/command-not-found/cnf-update-db rPx,
|
||||
/usr/share/language-tools/language-options rPx,
|
||||
|
||||
# For editing the sources.list file
|
||||
/{usr/,}bin/sensible-editor rCx -> editor,
|
||||
@ -110,6 +112,7 @@ profile apt @{exec_path} flags=(attach_disconnected) {
|
||||
/{usr/,}bin/sensible-pager rCx -> pager,
|
||||
|
||||
/usr/share/xml/iso-codes/{,**} r,
|
||||
/usr/share/language-selector/data/pkg_depends r,
|
||||
|
||||
/etc/apt/sources.list rwk,
|
||||
/etc/machine-id r,
|
||||
|
@ -32,6 +32,7 @@ profile chromium-chromium @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
ptrace (read) peer=browserpass,
|
||||
ptrace (read) peer=chrome-gnome-shell,
|
||||
ptrace (read) peer=gnome-browser-connector-host,
|
||||
ptrace (read) peer=keepassxc-proxy,
|
||||
ptrace (read) peer=lsb_release,
|
||||
ptrace (read) peer=xdg-settings,
|
||||
@ -49,6 +50,7 @@ profile chromium-chromium @{exec_path} flags=(attach_disconnected) {
|
||||
@{exec_path} mrix,
|
||||
|
||||
/{usr/,}bin/chrome-gnome-shell rPx,
|
||||
/{usr/,}bin/gnome-browser-connector-host rPx,
|
||||
/{usr/,}lib/chromium/chrome-sandbox rPx,
|
||||
/{usr/,}lib/chromium/chrome_crashpad_handler rPx,
|
||||
|
||||
|
@ -10,8 +10,9 @@ include <tunables/global>
|
||||
@{exec_path} = /{snap/snapd/[0-9]*/,}{usr/,}bin/fc-cache{,-32,-v*}
|
||||
profile fc-cache @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/fontconfig-cache-write>
|
||||
include <abstractions/fonts>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -46,16 +46,17 @@ profile gjs-console @{exec_path} flags=(attach_disconnected) {
|
||||
owner @{user_cache_dirs}/gstreamer-1.0/ rw,
|
||||
owner @{user_cache_dirs}/gstreamer-1.0/registry.*.bin{,.tmp*} rw,
|
||||
|
||||
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
||||
@{run}/user/@{uid}/wayland-cursor-shared-* rw,
|
||||
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
||||
owner @{run}/user/@{uid}/wayland-[0-9]* rw,
|
||||
|
||||
@{sys}/devices/system/cpu/possible r,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/task/ r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/stat r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
owner @{PROC}/@{pid}/task/ r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/stat r,
|
||||
|
||||
/dev/ r,
|
||||
/dev/tty rw,
|
||||
|
@ -9,6 +9,14 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}bin/gnome-extensions-app
|
||||
profile gnome-extensions-app @{exec_path} {
|
||||
include <abstractions/base>
|
||||
# include <abstractions/vulkan>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/dri-common>
|
||||
include <abstractions/dri-enumerate>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/mesa>
|
||||
include <abstractions/opencl>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@ -16,6 +24,15 @@ profile gnome-extensions-app @{exec_path} {
|
||||
/{usr/,}bin/gjs-console rix,
|
||||
|
||||
/usr/share/terminfo/x/xterm-256color r,
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
/usr/share/gnome-shell/org.gnome.Extensions* r,
|
||||
/usr/share/X11/xkb/{,**} r,
|
||||
|
||||
@{sys}/devices/system/cpu/possible r,
|
||||
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pids}/stat r,
|
||||
owner @{PROC}/@{pids}/task/@{tid}/stat r,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
|
@ -53,6 +53,7 @@ profile mullvad-gui @{exec_path} {
|
||||
@{sys}/bus/pci/devices/ r,
|
||||
@{sys}/devices/virtual/tty/tty[0-9]*/active r,
|
||||
@{sys}/devices/pci[0-9]*/**/{vendor,device,class,config} r,
|
||||
@{sys}/devices/system/cpu/possible r,
|
||||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/sys/fs/inotify/max_user_watches r,
|
||||
|
@ -8,7 +8,7 @@ include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}lib/nm-dispatcher
|
||||
@{exec_path} += /{usr/,}lib/NetworkManager/nm-dispatcher
|
||||
profile nm-dispatcher @{exec_path} {
|
||||
profile nm-dispatcher @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/dbus-strict>
|
||||
|
||||
|
@ -27,7 +27,7 @@ profile child-systemctl flags=(attach_disconnected) {
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/systemd[0-9]
|
||||
dbus send bus=system path=/org/freedesktop/systemd[0-9]/Unit
|
||||
interface=org.freedesktop.systemd[0-9].Manager
|
||||
member=GetUnitFileState,
|
||||
|
||||
|
@ -10,12 +10,18 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}bin/systemd-analyze
|
||||
profile systemd-analyze @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/dbus-strict>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
capability sys_resource,
|
||||
capability net_admin,
|
||||
|
||||
network inet dgram,
|
||||
network netlink raw,
|
||||
|
||||
signal (send) peer=child-pager,
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/systemd1
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=GetAll,
|
||||
@ -28,12 +34,8 @@ profile systemd-analyze @{exec_path} {
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=GetAll,
|
||||
|
||||
signal (send) peer=child-pager,
|
||||
|
||||
network inet dgram,
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}lib/systemd/system-environment-generators/* rix,
|
||||
|
||||
/{usr/,}bin/pager rPx -> child-pager,
|
||||
@ -68,13 +70,12 @@ profile systemd-analyze @{exec_path} {
|
||||
@{sys}/firmware/efi/efivars/LoaderTimeInitUSec-@{uuid} r,
|
||||
@{sys}/firmware/efi/efivars/LoaderTimeExecUSec-@{uuid} r,
|
||||
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/comm r,
|
||||
@{PROC}/swaps r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
owner @{PROC}/@{pid}/comm r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
|
||||
/dev/tty rw,
|
||||
/dev/pts/1 rw,
|
||||
|
||||
include if exists <local/systemd-analyze>
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}bin/systemd-hwdb
|
||||
profile systemd-hwdb @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -9,6 +9,7 @@ include <tunables/global>
|
||||
@{exec_path} = /usr/share/update-notifier/notify-reboot-required
|
||||
profile notify-reboot-required @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -67,6 +67,7 @@ profile software-properties-gtk @{exec_path} {
|
||||
@{sys}/devices/**/modalias r,
|
||||
|
||||
@{PROC}/@{pids}/mountinfo r,
|
||||
@{PROC}/asound/cards r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
|
@ -38,6 +38,8 @@ profile update-notifier @{exec_path} {
|
||||
/usr/share/apport/apport-checkreports rPx,
|
||||
/usr/share/apport/apport-gtk rPx,
|
||||
|
||||
/{usr/,}lib/python3.[0-9]*/dist-packages/{apt,gi}/**/__pycache__/{,**} rw,
|
||||
|
||||
/usr/share/applications/{,**} r,
|
||||
/usr/share/dpkg/cputable r,
|
||||
/usr/share/dpkg/tupletable r,
|
||||
|
@ -19,5 +19,7 @@ profile glib-compile-schemas @{exec_path} {
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled.[A-Z0-9]* rw,
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled rw,
|
||||
|
||||
/usr/share/gnome-shell/extensions/*/schemas/org.gnome.shell.extensions.*.gschema.xml r,
|
||||
|
||||
include if exists <local/glib-compile-schemas>
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}bin/install-info
|
||||
profile install-info @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
capability dac_read_search,
|
||||
|
||||
|
@ -6,18 +6,17 @@ abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /usr/share/language-tools/language-validate
|
||||
@{exec_path} = /usr/share/language-tools/language-{options,validate}
|
||||
profile language-validate @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
capability setgid,
|
||||
|
||||
@{exec_path} mr,
|
||||
@{exec_path} mrix,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/grep rix,
|
||||
/{usr/,}bin/locale rix,
|
||||
/usr/share/language-tools/language-options rix,
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/grep rix,
|
||||
/{usr/,}bin/locale rix,
|
||||
|
||||
/usr/share/locale-langpack/{,*} r,
|
||||
/usr/share/language-tools/{,*} r,
|
||||
|
@ -1,5 +1,6 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
||||
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
@ -20,35 +21,31 @@ profile rsyslogd @{exec_path} {
|
||||
capability net_admin, # For remote logs
|
||||
capability setgid, # For downgrading privileges
|
||||
capability setuid,
|
||||
capability sys_nice,
|
||||
capability syslog,
|
||||
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}lib/@{multiarch}/rsyslog/*.so mr,
|
||||
|
||||
# rsyslog configuration
|
||||
/etc/rsyslog.conf r,
|
||||
/etc/rsyslog.d/{,**} r,
|
||||
/var/spool/rsyslog/ r,
|
||||
/var/spool/rsyslog/** rw,
|
||||
|
||||
owner @{run}/rsyslogd.pid{,.tmp} rwk,
|
||||
owner @{run}/systemd/journal/syslog w,
|
||||
@{run}/systemd/notify rw,
|
||||
|
||||
# log files and devices
|
||||
/var/log/** rw,
|
||||
@{PROC}/kmsg r,
|
||||
|
||||
# a cert for gtls module
|
||||
/etc/CA/*.crt r,
|
||||
/etc/CA/*.key r,
|
||||
|
||||
/var/log/** rw,
|
||||
/var/spool/rsyslog/ r,
|
||||
/var/spool/rsyslog/** rw,
|
||||
|
||||
@{run}/systemd/notify rw,
|
||||
owner @{run}/rsyslogd.pid{,.tmp} rwk,
|
||||
owner @{run}/systemd/journal/syslog w,
|
||||
|
||||
@{PROC}/1/environ r,
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/kmsg r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
|
||||
@{run}/systemd/notify w,
|
||||
|
||||
include if exists <local/rsyslogd>
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ include <tunables/global>
|
||||
|
||||
|
||||
@{exec_path} = @{libexec}/rtkit-daemon
|
||||
profile rtkit-daemon @{exec_path} {
|
||||
profile rtkit-daemon @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/dbus-strict>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
@ -16,9 +16,9 @@ profile snap @{exec_path} {
|
||||
@{exec_path} mrix,
|
||||
|
||||
/snap/{,**} rw,
|
||||
/snap/snapd/[0-9]*/usr/lib/snapd/snap-confine rPx,
|
||||
/snap/snapd/[0-9]*/usr/lib/snapd/snap-seccomp rPx,
|
||||
/snap/snapd/[0-9]*/usr/lib/snapd/snapd r,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snap-confine rPx,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snap-seccomp rPx,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snapd r,
|
||||
|
||||
/etc/fstab r,
|
||||
|
||||
|
@ -18,8 +18,11 @@ profile snapd @{exec_path} {
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
capability audit_write,
|
||||
capability chown,
|
||||
capability dac_override,
|
||||
capability dac_read_search,
|
||||
capability fowner,
|
||||
capability fsetid,
|
||||
capability net_admin,
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
@ -56,6 +59,7 @@ profile snapd @{exec_path} {
|
||||
/{usr/,}bin/cp rix,
|
||||
/{usr/,}bin/gzip rix,
|
||||
/{usr/,}bin/mount rix,
|
||||
/{usr/,}bin/snap rPx,
|
||||
/{usr/,}bin/sync rix,
|
||||
/{usr/,}bin/systemctl rix,
|
||||
/{usr/,}bin/systemd-detect-virt rPx,
|
||||
@ -65,15 +69,15 @@ profile snapd @{exec_path} {
|
||||
/{usr/,}bin/unsquashfs rix,
|
||||
/{usr/,}bin/update-desktop-database rPx,
|
||||
|
||||
/snap/snapd/[0-9]*/lib/@{multiarch}/** mr,
|
||||
/snap/snapd/[0-9]*/lib/@{multiarch}/ld-*.so rix,
|
||||
/snap/snapd/[0-9]*/usr/bin/snap rPx,
|
||||
/snap/snapd/[0-9]*/usr/lib/snapd/snap-discard-ns rPx,
|
||||
/snap/snapd/[0-9]*/usr/lib/snapd/snap-seccomp rPx,
|
||||
/snap/snapd/[0-9]*/usr/lib/snapd/snap-update-ns rPx,
|
||||
/snap/snapd/[0-9]*/usr/lib/snapd/snapd rix,
|
||||
/snap/snapd/[0-9]*/usr/bin/fc-cache-* rPx -> fc-cache,
|
||||
/snap/snapd/[0-9]*/usr/bin/xdelta3 rix, # TODO: rPx ?
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/@{multiarch}/** mr,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/@{multiarch}/ld-*.so rix,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}bin/snap rPx,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snap-discard-ns rPx,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snap-seccomp rPx,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snap-update-ns rPx,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}lib/snapd/snapd rix,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}bin/fc-cache-* rPx -> fc-cache,
|
||||
/{snap/snapd/[0-9]*/,}{usr/,}bin/xdelta3 rix, # TODO: rPx ?
|
||||
|
||||
/usr/share/bash-completion/completions/{,**} r,
|
||||
/usr/share/dbus-1/{system,session}.d/{,snapd*} r,
|
||||
@ -104,6 +108,7 @@ profile snapd @{exec_path} {
|
||||
/tmp/syscheck-squashfs-[0-9]* rw,
|
||||
/tmp/read-file[0-9]*/{,**} rw,
|
||||
|
||||
/home/ r,
|
||||
@{HOME}/ r,
|
||||
@{HOME}/snap/{,**} rw,
|
||||
|
||||
@ -114,8 +119,8 @@ profile snapd @{exec_path} {
|
||||
owner @{run}/user/{,@{uid}/} r,
|
||||
owner @{run}/user/snap.*/{,**} rw,
|
||||
|
||||
@{run}/snapd-snap.socket rw,
|
||||
@{run}/snapd.socket rw,
|
||||
@{run}/snapd*.socket rw,
|
||||
@{run}/snapd/{,**} rw,
|
||||
@{run}/snapd/lock/*.lock rwk,
|
||||
@{run}/systemd/notify rw,
|
||||
@{run}/systemd/private rw,
|
||||
|
@ -37,12 +37,16 @@ profile steam @{exec_path} {
|
||||
signal (send) peer=steam-game,
|
||||
signal (read),
|
||||
|
||||
unix (receive) type=stream,
|
||||
|
||||
@{exec_path} mrix,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/*sum rix,
|
||||
/{usr/,}bin/basename rix,
|
||||
/{usr/,}bin/cat rix,
|
||||
/{usr/,}bin/cmp rix,
|
||||
/{usr/,}bin/cp rix,
|
||||
/{usr/,}bin/cut rix,
|
||||
/{usr/,}bin/dirname rix,
|
||||
/{usr/,}bin/gawk rix,
|
||||
@ -53,18 +57,23 @@ profile steam @{exec_path} {
|
||||
/{usr/,}bin/ldd rix,
|
||||
/{usr/,}bin/ln rix,
|
||||
/{usr/,}bin/lspci rPx,
|
||||
/{usr/,}bin/mkdir rix,
|
||||
/{usr/,}bin/mv rix,
|
||||
/{usr/,}bin/readlink rix,
|
||||
/{usr/,}bin/realpath rix,
|
||||
/{usr/,}bin/rm rix,
|
||||
/{usr/,}bin/sed rix,
|
||||
/{usr/,}bin/steam-runtime-urlopen rix,
|
||||
/{usr/,}bin/tail rix,
|
||||
/{usr/,}bin/tar rix,
|
||||
/{usr/,}bin/touch rix,
|
||||
/{usr/,}bin/tr rix,
|
||||
/{usr/,}bin/uname rix,
|
||||
/{usr/,}bin/which rix,
|
||||
/{usr/,}bin/xdg-icon-resource rPx,
|
||||
|
||||
/{usr/,}lib{32,64}/ld-linux.so* rix,
|
||||
/{usr/,}bin/xz rix,
|
||||
/{usr/,}bin/zenity rix,
|
||||
/{usr/,}lib{32,64}/ld-linux.so* rix,
|
||||
|
||||
@{user_share_dirs}/Steam/config/widevine/linux-x64/libwidevinecdm.so mr,
|
||||
@{user_share_dirs}/Steam/steamapps/common/SteamLinuxRuntime_soldier/*entry-point rpx,
|
||||
@ -116,6 +125,7 @@ profile steam @{exec_path} {
|
||||
owner @{user_share_dirs}/icons/hicolor/**/apps/steam*.png rw,
|
||||
owner @{user_share_dirs}/Steam/ rw,
|
||||
owner @{user_share_dirs}/Steam/** rwkl -> @{user_share_dirs}/Steam/**,
|
||||
owner @{user_share_dirs}/vulkan/implicit_layer.d/steam*.json rwk,
|
||||
|
||||
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.[0-9A-Z]* rw,
|
||||
|
||||
@ -125,6 +135,7 @@ profile steam @{exec_path} {
|
||||
owner /dev/shm/u@{uid}-ValveIPCSharedObj-Steam rwk,
|
||||
owner /dev/shm/ValveIPCSHM_@{uid} rw,
|
||||
|
||||
owner /tmp/dumps/ rw,
|
||||
owner /tmp/dumps/{assert,crash}_[0-9]*_[0-9]*.dmp rw,
|
||||
owner /tmp/sh-thd.* rw,
|
||||
owner /tmp/steam_chrome_shmem_uid@{uid}_spid[0-9]* rw,
|
||||
@ -162,6 +173,7 @@ profile steam @{exec_path} {
|
||||
@{sys}/power/suspend_stats/success rk,
|
||||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pids}/comm rk,
|
||||
@{PROC}/@{pids}/net/route r,
|
||||
@{PROC}/@{pids}/stat r,
|
||||
@{PROC}/sys/fs/inotify/max_user_watches r,
|
||||
@ -170,7 +182,6 @@ profile steam @{exec_path} {
|
||||
@{PROC}/sys/kernel/yama/ptrace_scope r,
|
||||
@{PROC}/sys/user/max_user_namespaces r,
|
||||
@{PROC}/version r,
|
||||
owner @{PROC}/@{pid}/comm rk,
|
||||
owner @{PROC}/@{pid}/autogroup rw,
|
||||
owner @{PROC}/@{pid}/cmdline rk,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
@ -184,5 +195,7 @@ profile steam @{exec_path} {
|
||||
/dev/input/ r,
|
||||
/dev/tty rw,
|
||||
|
||||
audit deny /**.steam_exec_test.sh rw,
|
||||
|
||||
include if exists <local/steam>
|
||||
}
|
||||
|
@ -36,6 +36,8 @@ profile steam-game @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/vulkan>
|
||||
|
||||
capability dac_override,
|
||||
capability dac_read_search,
|
||||
capability setpcap,
|
||||
capability sys_admin,
|
||||
capability sys_ptrace,
|
||||
@ -159,6 +161,7 @@ profile steam-game @{exec_path} flags=(attach_disconnected) {
|
||||
owner /dev/shm/mono.* rw,
|
||||
owner /dev/shm/u@{uid}-Shm_[0-9a-f]* rw,
|
||||
owner /dev/shm/u@{uid}-ValveIPCSharedObj-Steam rwk,
|
||||
owner /dev/shm/ValveIPCSHM_@{uid} rw,
|
||||
owner /dev/shm/wine-*-fsync rw,
|
||||
|
||||
owner /tmp/.wine-@{uid}/server-*/* rwk,
|
||||
|
@ -9,8 +9,9 @@ include <tunables/global>
|
||||
@{exec_path} = @{user_share_dirs}/Steam/ubuntu[0-9]*_{32,64}/gameoverlayui
|
||||
profile steam-gameoverlayui @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nvidia>
|
||||
include <abstractions/audio>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/nvidia>
|
||||
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
@ -34,15 +35,19 @@ profile steam-gameoverlayui @{exec_path} {
|
||||
owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
||||
owner @{user_share_dirs}/Steam/{,**} r,
|
||||
owner @{user_share_dirs}/Steam/config/DialogConfigOverlay*.vdf rw,
|
||||
owner @{user_share_dirs}/Steam/public/url_list.txt rk,
|
||||
owner @{user_share_dirs}/Steam/public/* rk,
|
||||
owner @{user_share_dirs}/Steam/resource/{,**} rk,
|
||||
owner @{user_share_dirs}/Steam/userdata/[0-9]*/{,**} rk,
|
||||
|
||||
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.[0-9A-Z]* rw,
|
||||
|
||||
owner /dev/shm/u@{uid}-Shm_[0-9a-f]* rw,
|
||||
owner /dev/shm/u@{uid}-ValveIPCSharedObj-* rwk,
|
||||
owner /dev/shm/ValveIPCSHM_@{uid} rw,
|
||||
|
||||
owner /tmp/gameoverlayui.log* rw,
|
||||
owner /tmp/steam_chrome_overlay_uid@{uid}_spid@{pids} rw,
|
||||
owner /tmp/miles_image_* mrw,
|
||||
|
||||
@{sys}/ r,
|
||||
@{sys}/devices/system/cpu/cpufreq/policy[0-9]*/cpuinfo_max_freq r,
|
||||
|
@ -27,6 +27,28 @@ profile udisksd @{exec_path} flags=(attach_disconnected) {
|
||||
|
||||
network netlink raw,
|
||||
|
||||
# Allow mounting of removable devices
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/{s,v}d[a-z]* -> @{MOUNTS}/*/,
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/{s,v}d[a-z]*[0-9]* -> @{MOUNTS}/*/,
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/dm-[0-9]* -> @{MOUNTS}/*/,
|
||||
|
||||
# Allow mounting of loop devices (ISO files)
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/loop[0-9]* -> @{MOUNTS}/*/,
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/loop[0-9]*p[0-9]* -> @{MOUNTS}/*/,
|
||||
|
||||
# Allow mounting of cdrom
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/loop[0-9]* -> /media/cdrom[0-9]/,
|
||||
mount fstype={iso9660,udf,ntfs3} /dev/sr[0-9]* -> /media/cdrom[0-9]/,
|
||||
|
||||
# Allow mounting od sd cards
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/mmcblk[0-9] -> @{MOUNTS}/*/,
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/mmcblk[0-9]*p[0-9]* -> @{MOUNTS}/*/,
|
||||
|
||||
# Allow unmounting
|
||||
umount @{MOUNTS}/,
|
||||
umount @{MOUNTS}/*/,
|
||||
umount /media/cdrom[0-9]/,
|
||||
|
||||
dbus (send,receive) bus=system path=/org/freedesktop/UDisks2{,/**}
|
||||
interface=org.freedesktop.{DBus*,UDisks2*},
|
||||
|
||||
@ -71,85 +93,46 @@ profile udisksd @{exec_path} flags=(attach_disconnected) {
|
||||
/{usr/,}bin/systemctl rPx -> child-systemctl,
|
||||
/{usr/,}bin/systemd-escape rPx,
|
||||
|
||||
# Allow mounting of removable devices
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/{s,v}d[a-z]* -> @{MOUNTS}/*/,
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/{s,v}d[a-z]*[0-9]* -> @{MOUNTS}/*/,
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/dm-[0-9]* -> @{MOUNTS}/*/,
|
||||
# Allow mounting of loop devices (ISO files)
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/loop[0-9]* -> @{MOUNTS}/*/,
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/loop[0-9]*p[0-9]* -> @{MOUNTS}/*/,
|
||||
# Allow mounting of cdrom
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/loop[0-9]* -> /media/cdrom[0-9]/,
|
||||
mount fstype={iso9660,udf,ntfs3} /dev/sr[0-9]* -> /media/cdrom[0-9]/,
|
||||
# Allow mounting od sd cards
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/mmcblk[0-9] -> @{MOUNTS}/*/,
|
||||
mount fstype={btrfs,ext*,vfat,iso9660,udf,ntfs3} /dev/mmcblk[0-9]*p[0-9]* -> @{MOUNTS}/*/,
|
||||
# Allow unmounting
|
||||
umount @{MOUNTS}/,
|
||||
umount @{MOUNTS}/*/,
|
||||
umount /media/cdrom[0-9]/,
|
||||
/etc/udisks2/{,**} r,
|
||||
/etc/libblockdev/{,**} r,
|
||||
/etc/fstab r,
|
||||
/etc/crypttab r,
|
||||
|
||||
/var/lib/udisks2/ r,
|
||||
/var/lib/udisks2/mounted-fs{,*} rw,
|
||||
|
||||
# Be able to create/delete dirs for removable media
|
||||
@{MOUNTS}/ rw,
|
||||
@{MOUNTS}/*/ rw,
|
||||
/media/cdrom[0-9]/ rw,
|
||||
|
||||
# Udisks2 config files
|
||||
/etc/udisks2/ r,
|
||||
/etc/udisks2/udisks2.conf r,
|
||||
|
||||
/etc/libblockdev/conf.d/ r,
|
||||
/etc/libblockdev/conf.d/[0-9][0-9]-default.cfg r,
|
||||
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/devices r,
|
||||
@{PROC}/swaps r,
|
||||
|
||||
# To be able to initialize device-mapper disk devices
|
||||
/dev/mapper/ r,
|
||||
/dev/mapper/control rw,
|
||||
|
||||
# The special /dev/loop-control file can be used to create and destroy loop devices or to find
|
||||
# the first available loop device.
|
||||
/dev/loop-control rw,
|
||||
|
||||
# To check whether the x-udisks-auth option was used to specify that additional authorization is
|
||||
# required to mount/unlock a device
|
||||
/etc/fstab r,
|
||||
/etc/crypttab r,
|
||||
|
||||
# To be able to operate on encryted devices
|
||||
@{run}/ r,
|
||||
@{run}/mount/utab{,.*} rw,
|
||||
@{run}/mount/utab.lock rwk,
|
||||
@{run}/udisks2/{,**} rw,
|
||||
@{run}/systemd/seats/seat[0-9]* r,
|
||||
@{run}/systemd/inhibit/[0-9]*.ref rw,
|
||||
@{run}/cryptsetup/ r,
|
||||
@{run}/cryptsetup/L* rwk,
|
||||
|
||||
@{sys}/fs/ r,
|
||||
@{sys}/bus/ r,
|
||||
@{sys}/class/ r,
|
||||
|
||||
@{sys}/devices/pci[0-9]*/**/{ata,usb,mmc}[0-9]/{,**/}remove rw,
|
||||
@{sys}/devices/pci[0-9]*/**/{ata,usb,mmc}[0-9]/{,**/}uevent w,
|
||||
@{sys}/devices/virtual/bdi/**/read_ahead_kb r,
|
||||
@{sys}/devices/virtual/block/*/{,**} rw,
|
||||
@{sys}/devices/virtual/block/loop[0-9]*/uevent rw,
|
||||
@{sys}/fs/ r,
|
||||
|
||||
# For powering off USB devices
|
||||
@{sys}/devices/pci[0-9]*/**/{ata,usb,mmc}[0-9]/{,**/}remove rw,
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/devices r,
|
||||
@{PROC}/swaps r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
@{sys}/devices/virtual/bdi/**/read_ahead_kb r,
|
||||
|
||||
@{run}/ r,
|
||||
|
||||
# Info on mounted devices
|
||||
@{run}/mount/utab{,.*} rw,
|
||||
@{run}/mount/utab.lock rwk,
|
||||
/var/lib/udisks2/ r,
|
||||
/var/lib/udisks2/mounted-fs{,*} rw,
|
||||
|
||||
@{run}/udisks2/{,**} rw,
|
||||
|
||||
@{run}/systemd/seats/seat[0-9]* r,
|
||||
@{run}/systemd/inhibit/[0-9]*.ref rw,
|
||||
/dev/loop-control rw,
|
||||
/dev/mapper/ r,
|
||||
/dev/mapper/control rw,
|
||||
|
||||
include if exists <local/udisksd>
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ abi <abi/3.0>,
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}{s,}bin/wpa_supplicant
|
||||
profile wpa-supplicant @{exec_path} {
|
||||
profile wpa-supplicant @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice>
|
||||
include <abstractions/openssl>
|
||||
|
Loading…
Reference in New Issue
Block a user