From 213c5f063a984e6309fa6f2258a0610de1656a9d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 24 Mar 2002 02:51:38 +0000 Subject: 2002-03-23 Roland McGrath * MAKEDEV.sh (mkdev: shm): Give the file mode 644 and pass options to tmpfs: -m 1777 512M. --- sutils/MAKEDEV.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sutils') 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 -- cgit v1.2.3