fi
# sysfs is also needed before any other things (under kernel > 2.5)
if grep -q sysfs /proc/filesystems ; then
- chroot $dir mount -o gid=17 -t sysfs sysfs /sys
+ chroot $dir mount -t sysfs sysfs /sys
fi
# selinux
if grep -q selinuxfs /proc/filesystems ; then
- chroot $dir mount -o gid=17 -t selinuxfs selinuxfs /selinux
+ chroot $dir mount -t selinuxfs selinuxfs /selinux
fi
chroot $dir mount -a
# network
# no support in kernel, no chance
SELINUX=no
elif ! is_fsmounted selinuxfs /selinux; then
- mount -n -o gid=17 -t selinuxfs selinuxfs /selinux
+ mount -n -t selinuxfs selinuxfs /selinux
fi
# Check SELinux status
# sysfs is also needed before any other things (under kernel > 2.5)
if ! is_fsmounted sysfs /sys; then
- grep -Fq sysfs /proc/filesystems && mount -n -o gid=17 -t sysfs sysfs /sys
+ grep -Fq sysfs /proc/filesystems && mount -n -t sysfs sysfs /sys
fi
if grep -Fq securityfs /proc/filesystems; then
mount -n -t securityfs securityfs /sys/kernel/security