aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-11-27 01:09:49 +0100
committerTom Gundersen <teg@jklm.no>2011-11-27 01:09:49 +0100
commit90189ad959eb55fe959b4e8eaf7c7da5d9630cf5 (patch)
treee495da04b479339be412a4e225caef870b73cc94
parented5cc9cb9ba777e2fe0d73a65c66d304f118dffc (diff)
downloadinitscripts-90189ad959eb55fe959b4e8eaf7c7da5d9630cf5.tar.xz
do not limit size on API fs
These are all owned by root, so risk of DoS is low. Also, running out of space on the fs' would be more critical than running low on memory. Signed-off-by: Tom Gundersen <teg@jklm.no>
-rwxr-xr-xrc.sysinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 746b0ad..72981f6 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -14,9 +14,9 @@ printsep
# mount /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm (the api filesystems)
mountpoint -q /proc || mount -n -t proc proc /proc -o nosuid,noexec,nodev
mountpoint -q /sys || mount -n -t sysfs sys /sys -o nosuid,noexec,nodev
-mountpoint -q /run || mount -n -t tmpfs run /run -o mode=0755,size=10M,nosuid,nodev
-mountpoint -q /dev || mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid ||
- mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
+mountpoint -q /run || mount -n -t tmpfs run /run -o mode=0755,nosuid,nodev
+mountpoint -q /dev || mount -n -t devtmpfs udev /dev -o mode=0755,nosuid ||
+ mount -n -t tmpfs udev /dev -o mode=0755,nosuid
mkdir -p -m 1777 /run/lock
mkdir -p /dev/{pts,shm}
mountpoint -q /dev/pts || mount -n /dev/pts &>/dev/null ||