freebsd-nq/usr.sbin
Peter Wemm 84c60f0d3f 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.
1995-11-03 09:30:13 +00:00
..
ac Add setlocale LC_TIME 1995-10-26 23:10:10 +00:00
accton Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
adduser Clean up some of the english here.. 1995-10-22 11:44:16 +00:00
amd Add code to work around FreeBSD's nfs symlink cache. 1995-08-24 10:22:25 +00:00
apm Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
apmconf Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
arp Make arp command actually behave as documented with the addition of a -f 1995-08-03 03:56:48 +00:00
bad144 Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
bootparamd main.c: 1995-07-25 22:44:14 +00:00
bootpd __386BSD__ -> __FreeBSD__ 1994-11-04 02:14:13 +00:00
bootpef add rtmsg.c. 1994-09-12 07:48:33 +00:00
bootpgw add rtmsg.c. 1994-09-12 07:48:33 +00:00
bootptest Changes for bootpd to work on FreeBSD 2.0: 1994-09-10 15:00:08 +00:00
cdcontrol Add the cdcontrol program by Serge Vakulenko. It's my understanding 1995-08-18 11:41:32 +00:00
cdplay Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
chown Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
chroot Get rid of update. Make man page installation work with our scheme 1994-08-05 16:31:05 +00:00
config Support the configuration of "od" devices. 1995-10-31 17:31:35 +00:00
config.new Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
cron Fix a bug that prevented %'s and \'s from being passed to the program 1995-09-10 13:02:56 +00:00
crunch Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
ctm Forgot this one in the MD5 reshuffle. 1995-07-13 15:33:42 +00:00
dbsym Changes to adapt to 2.0. 1994-08-23 11:17:55 +00:00
dev_mkdb Get rid of update. Make man page installation work with our scheme 1994-08-05 16:31:05 +00:00
diskpart Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
edquota Cast some expressions involving dbtob() to (unsigned long) and print them 1995-05-07 07:48:35 +00:00
eeprom Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
fdcontrol Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
fdformat Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
fdwrite Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
inetd Workaround for the setlogin()-in-same-session-as-inetd bug. 1995-11-03 09:30:13 +00:00
iostat Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
IPXrouted Submitted by: john hay 1995-10-27 10:48:31 +00:00
kbdcontrol Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
kbdmap Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
kernbb Fix various bogosities. 1995-10-22 19:45:28 +00:00
kgmon <sys/user.h> -> <sys/time.h> 1995-10-30 15:45:21 +00:00
kvm_mkdb Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
lpr Fix a longstanding bug in `lpr -r'. I used alloca() instead of 1995-10-05 22:41:02 +00:00
lptcontrol Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
lsdev Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
manctl Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
mixer Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
mount_portalfs Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
mountd Just when you thought it was safe... 1995-08-07 03:42:14 +00:00
mrouted - mrouted doesn't allow loopback of group-specific queries, thus if a 1995-10-07 03:48:44 +00:00
mtree st_size in struct stat has type off_t (long long) and not unsigned long 1995-10-06 16:25:10 +00:00
named Reset LC_TIME only and add missing export 1995-10-23 20:33:13 +00:00
ncrcontrol Improve usage message and document "-u" option to select one of multiple 1995-09-14 18:14:28 +00:00
nfsd Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nologin Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
nslookup merge beta26 import conflicts 1995-10-23 12:59:29 +00:00
pccard Minor tweaks to get ethernet working too. 1995-10-10 09:57:47 +00:00
pcvt Fix SRCS so that `make depend' works. There were some .l's and some .y's. 1995-09-28 18:23:44 +00:00
pkg_install Fix the `pkg_add relative to .' bug. Thank you, Ville! 1995-10-31 20:30:18 +00:00
pkg_manage Clean up compilation warning. 1995-08-23 05:26:21 +00:00
portmap Correct ip protocol in error message, when binding the tcp port. 1995-10-27 11:44:07 +00:00
ppp 1. Add a settable redial timer and logging of the process id in a file. 1995-10-08 14:57:32 +00:00
pppd Whoops.. ppp-comp.h -> ppp_comp.h... 1995-10-31 21:29:25 +00:00
pppstats Merge pppstats from ppp-2.2 onto mainline.. 1995-10-31 21:41:59 +00:00
pstat #include <sys/user.h> 1995-10-29 09:57:50 +00:00
pwd_mkdb Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
quot BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
quotaon Get rid of update. Make man page installation work with our scheme 1994-08-05 16:31:05 +00:00
rarpd Use daemon() to deamonify ourselves. 1995-07-18 21:35:32 +00:00
repquota Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
rmt The rmt protocol didn't allow to pass a file creation mode (permission 1995-04-09 09:20:47 +00:00
rndcontrol Control utility for the /dev/random device. This allows root to select 1995-10-28 17:04:25 +00:00
routed Typo.. SIOGIFCONF -> SIOCGIFCONF 1995-08-21 16:44:02 +00:00
rtprio Don't attempt to install rtprio.2 from here. It has moved to lib/libc/sys. 1995-08-06 00:58:52 +00:00
rwhod Here are patches to add full multicast support to rwhod, and an updated man 1995-08-17 00:51:40 +00:00
sa Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
sade This mega-commit brings in Jordan's latest sysinstall version.. 1995-09-18 16:53:06 +00:00
sendmail change cross reference from binmail(1) to mail.local(8) 1995-10-25 02:15:40 +00:00
sgsc Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
sicontrol Cosmetic fix: The usage message was wrong.. One of the commands (mstate) 1995-10-01 03:13:33 +00:00
sliplogin Minor cleanup of English once more. 1995-10-26 05:12:59 +00:00
slstat Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
spkrtest Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
swapinfo Don't follow a null pointer for the reporting error if kvm_openfiles() fails. 1994-11-14 07:54:06 +00:00
sysctl Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
sysinstall Be more aggressive about writing out configuration files. 1995-10-27 03:59:38 +00:00
syslogd Add a command-line option `-I' to disable logging from UDP. 1995-10-12 17:18:39 +00:00
tcpdump Correctly determine the local timezone, by looking at the tm_gmtoff result 1995-09-28 15:28:40 +00:00
timed Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
traceroute bugfix: traceroute hangs forever, if another ICMP traffics exists and 1995-07-23 01:25:33 +00:00
trpt Removed bogus #include of netinet/in_pcb.h 1995-04-10 00:41:25 +00:00
trsp Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
tzsetup Don't put up bogus confirmation dialog. 1995-10-06 02:46:23 +00:00
update BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
vidcontrol Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
vipw Small NIS tweak: frob pw_error() a little so that it can say either 1995-08-13 16:05:06 +00:00
vnconfig The vnconfig man page needs updating (change vndXX to vnXX). 1995-07-08 09:29:51 +00:00
watch Add setlocale LC_TIME 1995-10-26 23:15:14 +00:00
XNSrouted Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
xntpd Correct the manpage for the -o flag. Formerly it was a single flag, now 1995-09-03 20:09:00 +00:00
xten Switch from bogus absolute path to a relative one. 1995-05-09 23:48:54 +00:00
ypbind Add a -S option to ypbind that allows the following: 1995-07-20 22:33:02 +00:00
yppoll Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
ypset Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
zic Update timezone compiler and dumper to understand the new EC rules. 1995-08-05 20:28:48 +00:00
Makefile Add rndcontrol. 1995-10-29 09:03:13 +00:00
Makefile.inc BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00