aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall/installFinal.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1995-11-03 09:30:13 +0000
committerPeter Wemm <peter@FreeBSD.org>1995-11-03 09:30:13 +0000
commit84c60f0d3fdda9d6b73c7160bef98f3f3aaa8041 (patch)
treec72d33ccde46dc20ab3070fe67d6fdaebfc07cef /release/sysinstall/installFinal.c
parent42ef43999631e3113a4aec4d60474158339bf536 (diff)
Workaround for the setlogin()-in-same-session-as-inetd bug.
This causes: 1: inetd to clear it's getlogin() name at startup (in case the sysadmin logged in and su'ed to root and restarted inetd) 2: inetd to start each spawned process in it's own session. 3: inetd to call setlogin() on non-root processes (eg: uucp for uucico) 4: log failures more extensively This means that root spawned processes from inetd remain responsible for setting their login name if they change their uid. (eg: rshd, login, etc). If they do not do so, it is safer for them to have no "login name" than a wrong one (like "root") because the getlogin() system call is documented as "secure" on 4.4BSD. inetd when started from /etc/rc would have no login name anyway, so this isn't really a change - it's making it consistant with the bootup state... The setsid() change *may* cause something to break that is doing a setsid() itself and checking the result - it will fail now because it's already been done. The consensis seems to be that this is unlikely. David G. thinks this is acceptable as it is cleaner from an architectural point of view.
Notes
Notes: svn path=/head/; revision=12024
Diffstat (limited to 'release/sysinstall/installFinal.c')
0 files changed, 0 insertions, 0 deletions