Profile update.

This commit is contained in:
Alexandre Pujol 2021-05-26 20:44:42 +01:00
parent 797701d0a0
commit 58978c12b7
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
16 changed files with 28 additions and 12 deletions

View File

@ -16,6 +16,7 @@
@{sys}/devices/pci[0-9]*/**/{usb,ata}[0-9]/** r,
# SSD Nvme devices
/dev/nvme* rk,
@{sys}/devices/pci[0-9]*/**/nvme/nvme[0-9]*/{,**} r,
# SD card devices

View File

@ -4,5 +4,5 @@
# SPDX-License-Identifier: GPL-2.0-only
owner @{run}/user/@{uid}/wayland-[0-9]* rw,
owner @{run}/user/@{uid}/{mesa,mutter,sdl,wayland-cursor,weston,xwayland}-shared-* rw,
@{run}/user/@{uid}/{mesa,mutter,sdl,wayland-cursor,weston,xwayland}-shared-* rw,
owner /dev/shm/wlroots-* rw,

View File

@ -200,6 +200,7 @@ profile chromium-chromium @{exec_path} {
profile open {
include <abstractions/base>
include <abstractions/xdg-open>
include <abstractions/app-launcher-user>
/{usr/,}bin/xdg-open mr,

View File

@ -7,12 +7,14 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/dconf/dconf-service /usr/{lib,libexec}/dconf-service
profile dconf-service @{exec_path} {
profile dconf-service @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
# Needed?
deny capability sys_nice,
signal (receive) set=term peer=gdm,
@{exec_path} mr,
owner @{run}/user/@{uid}/dconf/ rw,
@ -24,8 +26,11 @@ profile dconf-service @{exec_path} {
owner @{user_cache_dirs}/ rw,
owner @{user_cache_dirs}/dconf/ rw,
owner @{user_cache_dirs}/dconf/user rw,
/var/lib/gdm/.config/dconf/user r,
@{PROC}/cmdline r,
/dev/tty[0-9]* rw,
include if exists <local/dconf-service>
}

View File

@ -16,7 +16,6 @@ profile gnome-session-binary @{exec_path} flags=(attach_disconnected) {
signal (send) set=(term) peer=gsd-*,
signal (receive) set=(term, hup) peer=gdm*,
signal (receive) set=(term) peer=gdm-wayland-session,
@{exec_path} mr,

View File

@ -33,6 +33,7 @@ profile gnome-shell @{exec_path} flags=(attach_disconnected) {
signal (receive) set=(term, hup) peer=gdm*,
signal (send) set=(usr1) peer=ibus-daemon,
signal (send) set=(term) peer=polkit*,
signal (send) set=(term) peer=xwayland,
@{exec_path} mr,
@ -126,7 +127,7 @@ profile gnome-shell @{exec_path} flags=(attach_disconnected) {
@{sys}/devices/pci[0-9]*/**/boot_vga r,
@{sys}/devices/pci[0-9]*/**/input[0-9]*/{properties,name} r,
@{sys}/devices/pci[0-9]*/**/net/*/statistics/{rx_bytes,tx_bytes} r,
@{sys}/devices/pci[0-9]*/drm/ r,
@{sys}/devices/pci[0-9]*/**/drm/ r,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/cgroup r,

View File

@ -12,5 +12,7 @@ profile gnome-shell-hotplug-sniffer @{exec_path} {
@{exec_path} mr,
/usr/share/mime/mime.cache r,
include if exists <local/gnome-shell-hotplug-sniffer>
}

View File

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}lib/gsd-housekeeping
profile gsd-housekeeping @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/app-launcher-user>
include <abstractions/thumbnails-cache-read>
signal (receive) set=(term, hup) peer=gdm*,

View File

@ -17,6 +17,7 @@ profile gpg-agent @{exec_path} {
@{exec_path} mr,
/{usr/,}lib/gnupg/scdaemon rPx,
/{usr/,}bin/pinentry-* rPx,
/usr/share/gnupg/* r,
@ -47,9 +48,6 @@ profile gpg-agent @{exec_path} {
@{PROC}/@{pid}/fd/ r,
# PIN-entry apps
/{usr/,}bin/pinentry-* rPx,
# file_inherit
owner @{HOME}/.xsession-errors w,

View File

@ -24,6 +24,7 @@ profile gpgconf @{exec_path} {
/{usr/,}bin/pinentry-* rPx,
owner @{HOME}/@{XDG_GPG_DIR}/** rwkl -> @{HOME}/@{XDG_GPG_DIR}/**,
owner @{HOME}/@{XDG_PROJECTS_DIR}/**/gnupg/** rwkl -> @{HOME}/@{XDG_PROJECTS_DIR}/**/gnupg/**,
owner @{PROC}/@{pid}/task/@{tid}/stat rw,
owner @{PROC}/@{pid}/task/@{tid}/comm rw,

View File

@ -16,6 +16,7 @@ profile gpgsm @{exec_path} {
deny /usr/bin/.gnupg/ w,
owner @{HOME}/@{XDG_GPG_DIR}/** rwkl -> @{HOME}/@{XDG_GPG_DIR}/**,
owner @{HOME}/@{XDG_PROJECTS_DIR}/**/gnupg/** rwkl -> @{HOME}/@{XDG_PROJECTS_DIR}/**,
owner /var/lib/*/.gnupg/** rwkl -> /var/lib/*/.gnupg/**,

View File

@ -17,6 +17,8 @@ profile dkms @{exec_path} {
capability setgid,
capability setuid,
unix (receive) type=stream,
@{exec_path} r,
/{usr/,}bin/{,ba,da}sh rix,
@ -63,7 +65,7 @@ profile dkms @{exec_path} {
/{usr/,}lib/modules/*/updates/ rw,
/{usr/,}lib/modules/*/updates/dkms/ rw,
/{usr/,}lib/modules/*/updates/dkms/*.ko rw,
/{usr/,}lib/modules/*/kernel/drivers/{,*.**.ko.xz} rw,
/{usr/,}lib/modules/*/kernel/drivers/{,*,*/,**.ko.xz} rw,
/var/lib/dkms/ r,
/var/lib/dkms/** rw,

View File

@ -13,7 +13,7 @@ profile gio-querymodules @{exec_path} {
@{exec_path} mr,
/{usr/,}/lib/gtk-{3,4}.0/**/giomodule.cache{,.[0-9A-Z]*} w,
/{usr/,}lib/gtk-{3,4}.0/**/giomodule.cache{,.[0-9A-Z]*} w,
include if exists <local/gio-querymodules>
}

View File

@ -22,6 +22,7 @@ profile groupadd @{exec_path} {
network netlink raw,
@{exec_path} mr,
/{usr/,}{s,}bin/nscd rix,
/etc/login.defs r,

View File

@ -10,13 +10,17 @@ include <tunables/global>
profile install-info @{exec_path} {
include <abstractions/base>
capability dac_read_search,
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}/bin/gzip rix,
/{usr/,}bin/gzip rix,
/usr/share/info/{,**} r,
/usr/share/info/dir rw,
/dev/tty rw,
include if exists <local/install-info>
}

View File

@ -26,8 +26,7 @@ profile kmod @{exec_path} {
# than to standard error.
capability syslog,
unix (receive) type=stream peer=(label=depmod),
unix (receive) type=stream peer=(label=modprobe),
unix (receive) type=stream,
@{exec_path} mr,