summaryrefslogtreecommitdiff
path: root/Kernel/build-root-filesystem.sh
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-04 12:42:55 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-04 12:46:45 +0100
commitc6254916bab12f2fc5ef382e89584325d08bdd7e (patch)
treeb33bc1928a73b33bda7468ce29bc14fc2482d50a /Kernel/build-root-filesystem.sh
parent20ac4e44d190c632e7eb7b57c91b9bc1221d865e (diff)
downloadserenity-c6254916bab12f2fc5ef382e89584325d08bdd7e.zip
Base: Make /dev/hd{a,b,c,d} superuser-only
Diffstat (limited to 'Kernel/build-root-filesystem.sh')
-rwxr-xr-xKernel/build-root-filesystem.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/build-root-filesystem.sh b/Kernel/build-root-filesystem.sh
index ef9aca2441..c6b93aa86c 100755
--- a/Kernel/build-root-filesystem.sh
+++ b/Kernel/build-root-filesystem.sh
@@ -59,6 +59,10 @@ mknod mnt/dev/hda b 3 0
mknod mnt/dev/hdb b 3 1
mknod mnt/dev/hdc b 4 0
mknod mnt/dev/hdd b 4 1
+for hd in a b c d; do
+ chmod 600 mnt/dev/hd$hd
+done
+
ln -s /proc/self/fd/0 mnt/dev/stdin
ln -s /proc/self/fd/1 mnt/dev/stdout
ln -s /proc/self/fd/2 mnt/dev/stderr