Bug 39580 - sysinstall(8): [request] more secure mount options
Summary: sysinstall(8): [request] more secure mount options
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sysinstall (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-20 17:50 UTC by aeonflux
Modified: 2015-11-10 09:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aeonflux 2002-06-20 17:50:01 UTC
By default in the install, when you have label create the drive partitions for you, a /tmp label is created however it is not mounted with the options "nofollowsymlinks" which would help stop race conditions.

As well, /tmp is not mounted with nosuid, allowing suid bit binaries to execute from the tmp directory.

Further reading from Kris Kennaway
http://old.lwn.net/2000/1221/a/sec-tmp.php3

Fix: 

edit /etc/fstab after installation and change the options to
"rw,nosymfollow,nosuid"

alter sysinstall to make those options default.
How-To-Repeat: exploit any race condition, like the adobe pdf writer one for example.
symlink a preditable file in /tmp to /etc/master.passwd, etc...  you all know the drill.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-07-13 00:43:36 UTC
State Changed
From-To: open->suspended

Awaiting patch from someone to implement the proposed changes 
to sysinstall.
Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2010-07-13 14:48:51 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-sysinstall

Over to maintainer(s)
Comment 3 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:07:25 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:12:16 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.