Use @{uid} instead of [0-9]* when it denotes the user id.

This commit is contained in:
Alexandre Pujol 2021-04-18 19:00:15 +01:00
parent cd4ad5b09c
commit 4a35b7d804
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
137 changed files with 253 additions and 253 deletions

View file

@ -58,7 +58,7 @@ profile systemd-logind @{exec_path} flags=(complain) {
@{run}/systemd/sessions/[0-9]*{,.ref} rw,
@{run}/systemd/sessions/.#* rw,
@{run}/systemd/users/ r,
@{run}/systemd/users/[0-9]* rw,
@{run}/systemd/users/@{uid} rw,
@{run}/systemd/users/.#* rw,
@{run}/systemd/userdb/ r,

View file

@ -29,7 +29,7 @@ profile systemd-tmpfiles @{exec_path} {
@{run}/tmpfiles.d/{,*.conf} r,
/usr/lib/tmpfiles.d/{,*.conf} r,
@{user_config_dirs}/user-tmpfiles.d/{,*.conf} r,
@{run}/user/@{pid}/user-tmpfiles.d/{,*.conf} r,
@{run}/user/@{uid}/user-tmpfiles.d/{,*.conf} r,
@{user_share_dirs}/user-tmpfiles.d/{,*.conf} r,
/usr/share/user-tmpfiles.d/{,*.conf} r,

View file

@ -17,7 +17,7 @@ profile systemd-xdg-autostart-generator @{exec_path} {
/etc/xdg/autostart/{,*.desktop} r,
owner @{user_config_dirs}/autostart/{,*.desktop} r,
owner @{run}/user/@{pid}/systemd/generator.late/{,**} rw,
owner @{run}/user/@{uid}/systemd/generator.late/{,**} rw,
owner @{PROC}/@{pid}/cgroup r,