freebsd-dev/libexec
Jacques Vidrine 0fcbbd7bea When PAM support was added to rexecd in revision 1.29 (just prior to
5.0-RELEASE), a visually elusive bug was introduced.  A comparison
operator was changed to assignment.  As a result, rexecd behaved
always as if the `-i' option had been specified.  It would allow root
logins.  This commit corrects the situation in the obvious way.

A separate bug was introduced at the same time.  The PAM library
functions are called between the invocation of getpwnam(3) and the use
of the returned static object.  Since many PAM library functions
result in additional getpwnam(3) calls, the contents of the returned
static object could be changed from under rexecd.  With this commit,
getpwnam_r(3) is used instead.

Other PAM-using applications should be reviewed for similar errors in
getpw* usage.

Security:	rexecd's documented default policy of disallowing root
		logins was not enforced.
Reviewed by:	cperciva
2005-03-27 13:59:44 +00:00
..
atrun
bootpd
comsat
fingerd
ftp-proxy
ftpd
getty
lukemftpd
mail.local
makekey
mknetid
pppoed
pt_chown
rbootd
revnetgroup
rexecd When PAM support was added to rexecd in revision 1.29 (just prior to 2005-03-27 13:59:44 +00:00
rlogind
rpc.rquotad
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
rshd Use sysconf(_SC_ARG_MAX) instead of NCARGS. 2005-03-21 08:01:14 +00:00
rtld-aout
rtld-elf If "dangerous" environment variables (LD_PRELOAD, LD_LIBMAP, 2005-03-24 10:12:29 +00:00
save-entropy
smrsh
talkd
tcpd
telnetd
tftpd
ypxfr
Makefile Install rlogind(8). Pointy hat is available on request. 2005-03-03 15:59:32 +00:00
Makefile.inc