diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-04-30 04:14:19 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-04-30 04:14:19 +0000 |
commit | a3a4bd6a407646b01d96bbe81ff93037172bfc79 (patch) | |
tree | eedb9566bdb94994787a5f2ed30088a69a25e3aa /distrib/miniroot | |
parent | 42b3c810797b516633e82d3b3e89b86e5911a91d (diff) |
Tighten up installed options on /tmp by adding nosuid,nodev.
Suggested by Ian McWilliam. ok deraadt@.
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index b470ca8cae4..761dee94778 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.99 2002/04/28 20:41:15 krw Exp $ +# $OpenBSD: install.sh,v 1.100 2002/04/30 04:14:18 krw Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2002 Todd Miller, Theo de Raadt, Ken Westerback @@ -267,11 +267,11 @@ if [ ! -f /etc/fstab ]; then # fstab. ( while read _dev _mp; do - if [ "$_mp" = "/" ]; then - echo /dev/$_dev $_mp ffs rw 1 1 - else - echo /dev/$_dev $_mp ffs rw 1 2 - fi + case $_mp in + "/") echo /dev/$_dev $_mp ffs rw 1 1;; + "/tmp") echo /dev/$_dev $_mp ffs rw,nosuid,nodev 1 2;; + *) echo /dev/$_dev $_mp ffs rw 1 2;; + esac done ) < ${FILESYSTEMS} > /tmp/fstab |