From b6fa45fb0898132f3dbd3430e0a3abee592028a5 Mon Sep 17 00:00:00 2001 From: Mark Salter Date: Tue, 15 Jan 2013 10:45:42 -0500 Subject: init-rootfs: make sure mount/umount are suid root Signed-off-by: Mark Salter --- init-rootfs.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'init-rootfs.sh') diff --git a/init-rootfs.sh b/init-rootfs.sh index 98979a4..a1e6f8c 100755 --- a/init-rootfs.sh +++ b/init-rootfs.sh @@ -28,6 +28,11 @@ do chmod 1777 $ii done +for ii in usr/bin/mount usr/bin/umount +do + if [ -e $ii ]; then chown root.root $ii ; chmod 4755 $ii ; fi +done + #-- do all the required mknods cd dev -- cgit