feat(profile): general update.

This commit is contained in:
Alexandre Pujol 2024-08-20 20:56:58 +01:00
parent f14ed2f024
commit 788d865939
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
34 changed files with 57 additions and 27 deletions

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{name} = firefox{,.sh,-esr,-bin}
@{lib_dirs} = @{lib}/@{name} /opt/@{name}
@{config_dirs} = @{HOME}/.mozilla/
@{cache_dirs} = @{user_cache_dirs}/mozilla/
@{exec_path} = @{lib_dirs}/glxtest
profile firefox-glxtest @{exec_path} flags=(attach_disconnected) {
@ -19,6 +20,9 @@ profile firefox-glxtest @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
owner @{cache_dirs}/firefox/*/startupCache/scriptCache-* r,
owner @{cache_dirs}/firefox/*/startupCache/startupCache* r,
owner @{config_dirs}/firefox/*/.parentlock rw,
owner @{tmp}/@{name}/.parentlock rw,

View file

@ -71,6 +71,7 @@ profile xdg-desktop-portal-gnome @{exec_path} flags=(attach_disconnected) {
owner @{desktop_cache_dirs}/fontconfig/[a-f0-9]*.cache-?{,.NEW,.LCK,.TMP-*} rw,
owner @{HOME}/ r,
owner @{HOME}/* r,
owner @{HOME}/*/{,**} rw,
owner @{MOUNTS}/ r,

View file

@ -14,8 +14,11 @@ profile gnome-clocks @{exec_path} {
include <abstractions/bus-session>
include <abstractions/bus/org.a11y>
include <abstractions/common/gnome>
include <abstractions/gstreamer>
include <abstractions/nameservice-strict>
network netlink raw,
#aa:dbus own bus=session name=org.gnome.clocks
@{exec_path} mr,

View file

@ -83,6 +83,11 @@ profile gnome-software @{exec_path} {
owner @{user_share_dirs}/ r,
owner @{user_share_dirs}/flatpak/.changed w,
owner @{user_share_dirs}/flatpak/{app,runtime}/ r,
owner @{user_share_dirs}/flatpak/{app,runtime}/*/ r,
owner @{user_share_dirs}/flatpak/{app,runtime}/*/**/@{hex64}/deploy r,
owner @{user_share_dirs}/flatpak/{app,runtime}/*/**/@{hex64}/metadata r,
owner @{user_share_dirs}/flatpak/{app,runtime}/*/*/ r,
owner @{user_share_dirs}/flatpak/repo/ rw,
owner @{user_share_dirs}/flatpak/repo/** rwl -> @{user_share_dirs}/flatpak/repo/**,
owner @{user_share_dirs}/gnome-software/{,**} rw,

View file

@ -38,6 +38,8 @@ profile gnome-system-monitor @{exec_path} flags=(attach_disconnected) {
/usr/share/gnome-system-monitor/{,**} r,
/usr/share/firefox-esr/browser/chrome/icons/default/*.png r,
owner @{tmp}/gdkpixbuf-xpm-tmp.@{rand6} rw,
owner @{run}/user/@{uid}/doc/ rw,
owner @{run}/user/@{uid}/gnome-shell-disable-extensions w,

View file

@ -16,6 +16,8 @@ profile gnome-tweaks @{exec_path} {
include <abstractions/python>
include <abstractions/thumbnails-cache-read>
network netlink raw,
@{exec_path} mr,
@{bin}/ r,

View file

@ -34,6 +34,7 @@ profile gsd-datetime @{exec_path} flags=(attach_disconnected) {
owner @{user_cache_dirs}/geocode-glib/* r,
owner @{PROC}/@{pid}/fdinfo/@{int} r,
owner @{PROC}/@{pid}/stat r,
owner /dev/tty@{int} rw,

View file

@ -47,6 +47,7 @@ profile org.gnome.NautilusPreviewer @{exec_path} {
owner @{PROC}/@{pid}/cmdline r,
owner @{PROC}/@{pid}/mounts r,
owner @{PROC}/@{pid}/stat r,
owner @{PROC}/@{pid}/task/@{tid}/comm w,
owner @{PROC}/@{pid}/task/@{tid}/stat r,
/dev/media@{int} r,

View file

@ -65,7 +65,9 @@ profile tracker-miner @{exec_path} flags=(attach_disconnected) {
owner @{gdm_config_dirs}/dconf/user r,
owner @{gdm_share_dirs}/applications/ r,
owner /var/tmp/etilqs_@{hex15} rw,
owner /var/tmp/etilqs_@{hex16} rw,
owner @{tmp}/etilqs_@{hex15} rw,
owner @{tmp}/etilqs_@{hex16} rw,
# Allow to search user files

View file

@ -21,7 +21,7 @@ profile gvfsd-mtp @{exec_path} {
@{exec_path} mr,
owner @{HOME}/{,**} rw,
owner @{HOME}/{,**} rw, # FIXME: ?
owner @{MOUNTS}/{,**} rw,
owner @{run}/user/@{uid}/gvfsd/socket-@{rand8} rw,

View file

@ -36,7 +36,7 @@ profile gvfsd-recent @{exec_path} {
@{exec_path} mr,
# Full access to user's data
owner @{HOME}/{,**} rw,
owner @{HOME}/{,**} rw, # FIXME: ?
owner @{MOUNTS}/{,**} rw,
owner @{HOME}/.zshenv r,

View file

@ -118,6 +118,7 @@ profile pacman @{exec_path} flags=(attach_disconnected) {
/var/** rwlk -> /var/**,
# Read packages files
@{user_pkg_dirs}/ r,
@{user_pkg_dirs}/**/ r,
@{user_pkg_dirs}/**.pkg.tar.zst{,.sig} r,
@ -193,6 +194,8 @@ profile pacman @{exec_path} flags=(attach_disconnected) {
capability dac_read_search,
capability sys_resource,
signal send set=cont peer=child-pager,
@{bin}/pager rPx -> child-pager,
@{bin}/less rPx -> child-pager,
@{bin}/more rPx -> child-pager,

View file

@ -131,6 +131,7 @@ profile libvirtd @{exec_path} flags=(attach_disconnected) {
/usr/share/edk2*/{,**} rk,
/usr/share/hwdata/* r,
/usr/share/iproute2/{,**} r,
/usr/share/libvirt/{,**} r,
/usr/share/mime/mime.cache r,
/usr/share/misc/pci.ids r,

View file

@ -62,6 +62,7 @@ profile virtnodedevd @{exec_path} flags=(attach_disconnected) {
@{run}/udev/data/c21:@{int} r, # Generic SCSI access
@{run}/udev/data/c29:@{int} r, # For /dev/fb[0-9]*
@{run}/udev/data/c81:@{int} r, # For video4linux
@{run}/udev/data/c89:@{int} r, # For I2C bus interface
@{run}/udev/data/c90:@{int} r, # For RAM, ROM, Flash
@{run}/udev/data/c116:@{int} r, # For ALSA
@{run}/udev/data/c202:@{int} r, # CPU model-specific registers

View file

@ -16,7 +16,7 @@ profile xfce-sensors @{exec_path} {
@{sys}/class/hwmon/ r,
@{sys}/class/power_supply/ r,
@{sys}/class/thermal/ r,
@{sys}/devices/@{pci}/i2c-@{int}/name r,
@{sys}/devices/@{pci}/i2c-@{int}/{,**/}name r,
@{sys}/devices/**/hwmon@{int}/ r,
@{sys}/devices/**/hwmon@{int}/{name,temp*} r,
@{sys}/devices/**/hwmon@{int}/**/ r,