diff options
author | Mark Salter <msalter@redhat.com> | 2013-01-15 10:45:42 -0500 |
---|---|---|
committer | Al Stone <ahs3@redhat.com> | 2013-01-15 11:03:25 -0700 |
commit | b6fa45fb0898132f3dbd3430e0a3abee592028a5 (patch) | |
tree | 5ba228daa5c76c197a8bafeb21051e0caecc38eb | |
parent | fbb7414ea414129c7b7e8d5e420afe69c21f096b (diff) | |
download | bootstrap.git.DONOTUSE-b6fa45fb0898132f3dbd3430e0a3abee592028a5.tar.gz bootstrap.git.DONOTUSE-b6fa45fb0898132f3dbd3430e0a3abee592028a5.tar.xz bootstrap.git.DONOTUSE-b6fa45fb0898132f3dbd3430e0a3abee592028a5.zip |
init-rootfs: make sure mount/umount are suid root
Signed-off-by: Mark Salter <msalter@redhat.com>
-rwxr-xr-x | init-rootfs.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |