roothome selinux fix

This commit is contained in:
Harald Hoyer 2018-09-18 19:08:55 +02:00
parent 9eb0a8517e
commit bbbcf5e33d

View file

@ -473,8 +473,6 @@ sed -i -e 's#^SELINUX=.*#SELINUX=permissive#g' "$sysroot"/etc/selinux/config
chroot "$sysroot" semanage fcontext -a -e /etc /cfg
chroot "$sysroot" semanage fcontext -a -e /etc /usr/share/factory/cfg
chroot "$sysroot" semanage fcontext -a -e /var /usr/share/factory/var
#chroot "$sysroot" semanage fcontext -a -e /root /var/roothome
chroot "$sysroot" semanage fcontext -a -e /root /usr/share/factory/var/roothome
chroot "$sysroot" semanage fcontext -a -s system_u -f f -t passwd_file_t /usr/lib/passwd
chroot "$sysroot" semanage fcontext -a -s system_u -f f -t passwd_file_t /usr/lib/group
chroot "$sysroot" semanage fcontext -a -s system_u -f f -t shadow_t /usr/lib/shadow