summaryrefslogtreecommitdiff
path: root/scripts/init-floppy
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-10-01 11:06:42 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-10-01 11:06:42 -0700
commitc78df0037d8d81ccac914f3ac2491932cdea82a7 (patch)
tree91bc52408f9c4a4cbfe68895df601942567fc00c /scripts/init-floppy
parentf3fbac608b834cb30ba9565e2da220b65395a4bd (diff)
downloadvyatta-cfg-system-c78df0037d8d81ccac914f3ac2491932cdea82a7.tar.gz
vyatta-cfg-system-c78df0037d8d81ccac914f3ac2491932cdea82a7.zip
Mount floppy with safer options
Change how floppy is mounted to avoid updates and possible security issues: noatime - don't update last access time (avoids writing to floppy) noexec - don't allow running programs off floppy nosuid - block setuid programs nodev - no device special files allowed
Diffstat (limited to 'scripts/init-floppy')
-rwxr-xr-xscripts/init-floppy2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/init-floppy b/scripts/init-floppy
index affaa1d1..1685a464 100755
--- a/scripts/init-floppy
+++ b/scripts/init-floppy
@@ -89,7 +89,7 @@ echo "$create_notice"
failure "$create__error"
echo "$mount__notice"
-/bin/mount /dev/fd0 $fd -t ext2 -o sync &>/dev/null || \
+/bin/mount /dev/fd0 $fd -t ext2 -o sync,noatime,noexec,nosuid,nodev &>/dev/null || \
failure "$mount___error"
/bin/mkdir $fd/config