mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
Base: Make /dev/hd{a,b,c,d} superuser-only
This commit is contained in:
parent
20ac4e44d1
commit
c6254916ba
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,10 @@ mknod mnt/dev/hda b 3 0
|
||||||
mknod mnt/dev/hdb b 3 1
|
mknod mnt/dev/hdb b 3 1
|
||||||
mknod mnt/dev/hdc b 4 0
|
mknod mnt/dev/hdc b 4 0
|
||||||
mknod mnt/dev/hdd b 4 1
|
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/0 mnt/dev/stdin
|
||||||
ln -s /proc/self/fd/1 mnt/dev/stdout
|
ln -s /proc/self/fd/1 mnt/dev/stdout
|
||||||
ln -s /proc/self/fd/2 mnt/dev/stderr
|
ln -s /proc/self/fd/2 mnt/dev/stderr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue