Allow systemd-tmpfiles to manage all files
The `systemd_tmpfiles_manage_all` SELinux boolean allows systemd-tmpfiles to manage any file, not just the (very small) subset allowed by the default SELinux policy. Since we're using systemd-tmpfiles to create directories and subvolumes for our applications, we need this setting enabled.
This commit is contained in:
@@ -97,6 +97,7 @@ fi
|
||||
unshare -m sh -e <<EOF
|
||||
mount -o bind /mnt/gentoo/var/lib/selinux /var/lib/selinux
|
||||
mount -o bind /mnt/gentoo/etc/selinux /etc/selinux
|
||||
semanage boolean -N -m --on systemd_tmpfiles_manage_all
|
||||
semanage boolean -N -m --on ssh_sysadm_login
|
||||
semanage login -N -m -s root root
|
||||
semanage user -N -m -R sysadm_r root
|
||||
|
||||
Reference in New Issue
Block a user