feat(profile): general update and fixes.

This commit is contained in:
Alexandre Pujol 2024-10-22 22:04:04 +01:00
parent 897302bc5b
commit d9208e0648
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
21 changed files with 78 additions and 79 deletions

View file

@ -16,7 +16,7 @@ include <tunables/global>
profile dbus-system flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus-system>
include <abstractions/consoles>
include <abstractions/attached/consoles>
include <abstractions/deny-sensitive-home>
include <abstractions/nameservice-strict>

View file

@ -65,6 +65,7 @@ profile xdg-desktop-portal-gnome @{exec_path} flags=(attach_disconnected) {
owner @{PROC}/@{pid}/cmdline r,
owner @{PROC}/@{pid}/mountinfo r,
owner @{PROC}/@{pid}/task/@{tid}/ r,
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
owner @{PROC}/@{pid}/task/@{tid}/status r,
include if exists <local/xdg-desktop-portal-gnome>

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = @{lib}/xdg-desktop-portal-gtk
profile xdg-desktop-portal-gtk @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/attached/consoles>
include <abstractions/bus-accessibility>
include <abstractions/bus-session>
include <abstractions/bus-system>

View file

@ -172,12 +172,13 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
owner @{tmp}/#@{int} rw,
owner @{tmp}/sddm-auth* rw,
@{att}/@{run}/systemd/sessions/{,@{l}}@{int}.ref rw,
@{run}/faillock/@{user} rwk,
@{run}/sddm.pid rw,
@{run}/sddm/\{@{uuid}\} rw,
@{run}/sddm/#@{int} rw,
@{run}/sddm/xauth_@{rand6} rwl -> @{run}/sddm/#@{int},
@{run}/systemd/sessions/*.ref rw,
@{run}/user/@{uid}/xauth_@{rand6} rwl,
owner @{run}/sddm/ rw,
owner @{run}/user/@{uid}/ r,

View file

@ -59,9 +59,9 @@ profile mullvad-daemon @{exec_path} flags=(attach_disconnected) {
owner @{tmp}/@{uuid} rw,
owner @{tmp}/talpid-openvpn-@{uuid} rw,
@{PROC}/sys/net/ipv{4,6}/conf/all/src_valid_mark rw,
owner @{PROC}/@{pid}/mounts r,
owner @{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
@{PROC}/sys/net/ipv{4,6}/conf/all/src_valid_mark rw,
/dev/net/tun rw,

View file

@ -47,14 +47,15 @@ profile aurpublish @{exec_path} {
/etc/makepkg.conf r,
/etc/makepkg.conf.d/{,**} r,
owner @{user_build_dirs}/**/ w,
owner @{user_build_dirs}/{,**/} w,
owner @{user_projects_dirs}/** r,
owner @{user_projects_dirs}/**/.git/COMMIT_EDITMSG rw,
owner @{user_projects_dirs}/**/.SRCINFO rw,
owner @{user_cache_dirs}/makepkg/src/* rw,
owner @{user_cache_dirs}/makepkg/src/** rw,
owner @{user_config_dirs}/pacman/makepkg.conf r,
owner /tmp/*/src/ w,
owner @{tmp}/tmp.@{rand10} rw,
/dev/tty rw,
@ -64,14 +65,26 @@ profile aurpublish @{exec_path} {
@{bin}/gpg{,2} mr,
@{bin}/gpgconf mr,
@{bin}/gpg-agent rix,
@{lib}/{,gnupg/}scdaemon rix,
owner @{HOME}/@{XDG_GPG_DIR}/ rw,
owner @{HOME}/@{XDG_GPG_DIR}/** rwkl -> @{HOME}/@{XDG_GPG_DIR}/**,
owner @{user_cache_dirs}/makepkg/src/*.asc r,
owner @{run}/user/@{uid}/ r,
owner @{run}/user/@{uid}/gnupg/ r,
owner @{run}/user/@{uid}/gnupg/d.@{rand}/ rw,
owner @{run}/user/@{uid}/gnupg/d.@{rand}/S.gpg-agent rw,
owner @{run}/user/@{uid}/gnupg/d.@{rand}/S.gpg-agent.browser w,
owner @{run}/user/@{uid}/gnupg/d.@{rand}/S.gpg-agent.extra w,
owner @{run}/user/@{uid}/gnupg/d.@{rand}/S.gpg-agent.ssh w,
owner @{tmp}/tmp.@{rand10} rw,
owner @{PROC}/@{pid}/fd/ r,
include if exists <local/aurpublish_gpg>
}