]> TLD Linux GIT Repositories - rc-scripts.git/blobdiff - rc.d/rc.sysinit
- PLD merge: remove unknown `gid' mount option for sysfs, selinuxfs
[rc-scripts.git] / rc.d / rc.sysinit
index b6bfb29827db80c7d8a9951c8de9964161673f3f..524fe973224954df24c2e4934c5eb36a14e44fb6 100755 (executable)
@@ -124,7 +124,7 @@ init_selinux() {
                # 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
@@ -369,7 +369,7 @@ if [[ "$container" != lxc* ]]; then
 
        # 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