Add include if exists abstractions *.d

This commit is contained in:
Alexandre Pujol 2021-04-12 19:59:04 +01:00
parent 8d22bc10b2
commit 3734e5aedf
Failed to generate hash of commit
28 changed files with 53 additions and 0 deletions

View file

@ -9,3 +9,5 @@
/usr/ r,
/{usr/,}{s,}bin/ r,
/{usr/,}{s,}bin/[a-z0-9]* rPUx,
include if exists <abstractions/app-launcher-root.d>

View file

@ -36,3 +36,5 @@
/opt/FreeTube/freetube rPx,
/opt/FreeTube-Vue/ r,
/opt/FreeTube-Vue/freetube-vue rPx,
include if exists <abstractions/app-launcher-user.d>

View file

@ -26,3 +26,5 @@
owner /tmp/clearsigned.message.* rw,
owner /tmp/#[0-9]*[0-9] rw,
include if exists <abstractions/apt-common.d>

View file

@ -19,3 +19,5 @@
deny owner @{user_config_dirs}/glib-2.0/settings/ rw,
deny owner @{user_config_dirs}/glib-2.0/settings/keyfile rw,
deny owner @{user_config_dirs}/glib-2.0/settings/.goutputstream-* rw,
include if exists <abstractions/deny-dconf.d>

View file

@ -14,3 +14,5 @@
# Use audit for now to see whether some apps are trying to get access to the /root/ dir.
audit deny /root/{,**} rwkmlx,
include if exists <abstractions/deny-root-dir-access.d>

View file

@ -23,3 +23,5 @@
@{run}/udev/data/c16[6,7]* r,
@{run}/udev/data/c18[0,8,9]* r,
@{run}/udev/data/c8[0-9]:[0-9]* r,
include if exists <abstractions/devices-usb.d>

View file

@ -81,3 +81,5 @@
@{run}/udev/data/c189:[0-9]* r, # for /dev/bus/usb/**
@{run}/udev/data/+usb:* r, # for ?
include if exists <abstractions/disks-read.d>

View file

@ -82,3 +82,5 @@
@{run}/udev/data/c189:[0-9]* r, # for /dev/bus/usb/**
@{run}/udev/data/+usb:* r, # for ?
include if exists <abstractions/disks-write.d>

View file

@ -11,3 +11,5 @@
deny /etc/fstab r,
deny /dev/disk/*/ r,
include if exists <abstractions/file-browsing-strict.d>

View file

@ -17,3 +17,5 @@
/var/lib/snapd/desktop/applications/mimeinfo.cache r,
/var/lib/snapd/desktop/applications/*.desktop r,
/var/lib/snapd/desktop/applications/ r,
include if exists <abstractions/flatpak-snap.d>

View file

@ -40,3 +40,5 @@
deny "@{user_share_dirs}/fonts/Google Fonts/.uuid{,.NEW,.LCK,.TMP-*}" w,
owner "@{user_share_dirs}/fonts/Google Fonts/**/.uuid" r,
deny "@{user_share_dirs}/fonts/Google Fonts/**/.uuid{,.NEW,.LCK,.TMP-*}" w,
include if exists <abstractions/fontconfig-cache-read.d>

View file

@ -25,3 +25,4 @@
owner "@{user_share_dirs}/fonts/Google Fonts/**/.uuid{,.NEW,.LCK,.TMP-*}" rw,
link "@{user_share_dirs}/fonts/Google Fonts/**/.uuid.LCK" -> "/home/*/.local/share/fonts/Google Fonts/**/.uuid.TMP-*",
include if exists <abstractions/fontconfig-cache-write.d>

View file

@ -7,3 +7,5 @@
owner @{HOME}/.fzf/{,**} r,
owner @{HOME}/.fzf.* r,
include if exists <abstractions/fzf.d>

View file

@ -51,3 +51,5 @@
owner @{HOME}/{.cache/,.}gstreamer-[0-9]*/ rw,
owner @{HOME}/{.cache/,.}gstreamer-[0-9]*/registry.*.bin{,.tmp*} rw,
include if exists <abstractions/gstreamer.d>

View file

@ -42,3 +42,5 @@
# Xsession errors file
owner @{HOME}/.xsession-errors w,
include if exists <abstraction/gtk.d>

View file

@ -29,3 +29,5 @@
owner /var/tmp/kdecache-*/ r,
owner /var/tmp/kdecache-*/** r,
owner /var/tmp/kdecache-*/*.kcache rw,
include if exists <abstractions/kde4.d>

View file

@ -58,3 +58,5 @@
#/usr/share/mime/ r,
#owner @{user_config_dirs}/menus/ r,
#owner @{user_config_dirs}/menus/applications-merged/ r,
include if exists <abstractions/kde5-plasma5.d>

View file

@ -20,3 +20,4 @@
/{var,}run/systemd/userdb/io.systemd.{NameServiceSwitch,Multiplexer,DynamicUser,Home} r,
@{PROC}/sys/kernel/random/boot_id r,
include if exists <abstractions/nameservice-strict.d>

View file

@ -17,3 +17,5 @@
/dev/kmsg w,
@{sys}/firmware/efi/efivars/SecureBoot-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]* r,
include if exists <abstractions/systemd-common.d>

View file

@ -11,3 +11,5 @@
owner @{user_cache_dirs}/thumbnails/ r,
owner @{user_cache_dirs}/thumbnails/{large,normal}/ r,
owner @{user_cache_dirs}/thumbnails/{large,normal}/[a-f0-9]*.png r,
include if exists <abstractions/thumbnails-cache-read.d>

View file

@ -13,3 +13,5 @@
owner @{user_cache_dirs}/thumbnails/{large,normal}/ rw,
owner @{user_cache_dirs}/thumbnails/{large,normal}/#[0-9]*[0-9] rw,
owner @{user_cache_dirs}/thumbnails/{large,normal}/[a-f0-9]*.png rwl -> @{user_cache_dirs}/thumbnails/{large,normal}/#[0-9]*[0-9],
include if exists <abstractions/thumbnails-cache-write.d>

View file

@ -29,3 +29,5 @@
/usr/bin/obfsproxy PUx,
/usr/bin/obfs4proxy Pix,
include if exists <abstractions/tor.d>

View file

@ -51,3 +51,5 @@
/run/udev/data/+usb* r,
/sys/devices/system/node/*/meminfo r,
include if exists <abstractions/totem.d>

View file

@ -74,3 +74,5 @@
owner /{media,mnt}/*/*/.Trash-[0-9]*/expunged/[0-9]* rw,
owner /{media,mnt}/*/*/.Trash-[0-9]*/expunged/[0-9]*/ rw,
owner /{media,mnt}/*/*/.Trash-[0-9]*/expunged/[0-9]*/** rw,
include if exists <abstractions/trash.d>

View file

@ -19,3 +19,5 @@
# For SSHFS mounts (without owner as files in such mounts can be owned by different users)
@{HOME}/mount-sshfs/ r,
@{HOME}/mount-sshfs/** rwl,
include if exists <abstractions/user-download-strict.d>

View file

@ -8,3 +8,5 @@
owner @{HOME}/@{XDG_VIDEOS_DIR}/{,**} r,
owner @{HOME}/@{XDG_PROJECTS_DIR}/{,**} r,
owner @{HOME}/@{XDG_BOOKS_DIR}/{,**} r,
include if exists <abstractions/user-read.d>

View file

@ -12,3 +12,4 @@
owner @{user_cache_dirs}/vlc/art/artistalbum/**/art rw,
owner @{user_cache_dirs}/vlc/art/artistalbum/**/art.jpg rw,
include if exists <abstractions/vlc-art-cache-write.d>

View file

@ -25,3 +25,5 @@
owner @{HOME}/.zcompdump-* rw,
owner @{user_config_dirs}/zsh/{,**} r,
include if exists <abstractions/zsh.d>