fix(profile): ensure PAM & systemd-homed compatibility.

see #321
This commit is contained in:
Alexandre Pujol 2024-05-05 17:42:32 +01:00
parent bfd9e9e3d6
commit d544c386f7
Failed to generate hash of commit
3 changed files with 3 additions and 5 deletions

View file

@ -39,6 +39,7 @@
@{etc_ro}/sudoers.d/{,*} r,
/ r,
/etc/machine-id r,
owner /var/lib/sudo/ts/ rw,
owner /var/lib/sudo/ts/@{uid} rwk,

View file

@ -11,14 +11,10 @@ include <tunables/global>
profile groups @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
@{exec_path} mr,
/etc/group r,
/etc/nsswitch.conf r,
@{run}/systemd/userdb r,
@{PROC}/sys/kernel/random/boot_id r,
/dev/tty@{int} rw,

View file

@ -19,6 +19,7 @@ profile unix-chkpwd @{exec_path} {
@{exec_path} mr,
/etc/machine-id r,
/etc/shadow r,
# systemd userdb, used in nspawn