diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-10-01 11:06:42 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-10-01 11:06:42 -0700 |
commit | c78df0037d8d81ccac914f3ac2491932cdea82a7 (patch) | |
tree | 91bc52408f9c4a4cbfe68895df601942567fc00c /scripts/init-floppy | |
parent | f3fbac608b834cb30ba9565e2da220b65395a4bd (diff) | |
download | vyatta-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-x | scripts/init-floppy | 2 |
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 |