diff options
author | Roland McGrath <roland@gnu.org> | 2002-03-24 02:51:38 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-03-24 02:51:38 +0000 |
commit | 213c5f063a984e6309fa6f2258a0610de1656a9d (patch) | |
tree | 1403889ec5cc54938403ed7ad217919bb3de3786 | |
parent | ea557a340a869ce2abda5fbd652f1419d278c12e (diff) |
2002-03-23 Roland McGrath <roland@frob.com>
* MAKEDEV.sh (mkdev: shm): Give the file mode 644 and pass
options to tmpfs: -m 1777 512M.
-rw-r--r-- | sutils/MAKEDEV.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh index ac7162fc..f22d4861 100644 --- a/sutils/MAKEDEV.sh +++ b/sutils/MAKEDEV.sh @@ -170,8 +170,14 @@ function mkdev { ;; # /dev/shm is used by the POSIX.1 shm_open call in libc. + # We don't want the underlying node to be written by randoms, + # but the filesystem presented should be writable by anyone + # and have the sticky bit set so others' files can't be removed. + # tmpfs requires an arbitrary size limitation here. + # To be like Linux, tmpfs could have an option to compute + # that max based on (half of) the physical RAM in the machine. shm) - st $I root 1777 /hurd/tmpfs + st $I root 644 /hurd/tmpfs -m 1777 512M ;; # Linux compatibility |