From 007473280f09c23aeba773bafc133456d11e7b2f Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 21 May 2024 20:45:54 +0200 Subject: [PATCH] - PLD merge: remove unknown `gid' mount option for sysfs, selinuxfs --- rc.d/init.d/sys-chroots | 4 ++-- rc.d/rc.sysinit | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rc.d/init.d/sys-chroots b/rc.d/init.d/sys-chroots index b6e88ef..4945393 100755 --- a/rc.d/init.d/sys-chroots +++ b/rc.d/init.d/sys-chroots @@ -103,11 +103,11 @@ start() { 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 diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index b6bfb29..524fe97 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -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 -- 2.45.2