<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rexecd, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2005-06-10T20:52:36Z</updated>
<entry>
<title>Remove rexecd(8), a server that implements a particularly insecure</title>
<updated>2005-06-10T20:52:36Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2005-06-10T20:52:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a8e0b2e8abb8ccc18102c82d7acf5fa58546751c'/>
<id>urn:sha1:a8e0b2e8abb8ccc18102c82d7acf5fa58546751c</id>
<content type='text'>
method of executing commands remotely.  There are no rexec clients in
the FreeBSD tree, and the client function rexec(3) is present only in
libcompat.  It has been documented as "obsolete" since 4.3BSD, and its
use has been discouraged in the man page for over 10 years.
</content>
</entry>
<entry>
<title>s/int/size_t/ as appropriate.</title>
<updated>2005-04-17T01:06:37Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2005-04-17T01:06:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8318eaae8b751e58e2a593d48bd5e5ca827af96a'/>
<id>urn:sha1:8318eaae8b751e58e2a593d48bd5e5ca827af96a</id>
<content type='text'>
Noticed by:	bde
</content>
</entry>
<entry>
<title>Revert parts of previous commits and use a temporary variable to avoid</title>
<updated>2005-04-08T11:19:50Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2005-04-08T11:19:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a049d7b097542d785e32041ac8570d57be5b086f'/>
<id>urn:sha1:a049d7b097542d785e32041ac8570d57be5b086f</id>
<content type='text'>
an invalid type pun.
</content>
</entry>
<entry>
<title>An array was mistaken for a pointer in the previous commit.</title>
<updated>2005-04-07T19:26:35Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2005-04-07T19:26:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5c929a0c96deee3556062b589a4cc3a716ded578'/>
<id>urn:sha1:5c929a0c96deee3556062b589a4cc3a716ded578</id>
<content type='text'>
Noticed by:	tinderbox, stefanf
Pointy hat to:	nectar
</content>
</entry>
<entry>
<title>Correct type mismatch introduced in last commit.</title>
<updated>2005-04-05T18:25:27Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2005-04-05T18:25:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=26f7774a47464ab57d2cb5c85fc02ad03b5fba38'/>
<id>urn:sha1:26f7774a47464ab57d2cb5c85fc02ad03b5fba38</id>
<content type='text'>
Noticed by:	Steve Kargl &lt;sgk@troutmask.apl.washington.edu&gt;
</content>
</entry>
<entry>
<title>DES pointed out that the PAM layer may change the target user name</title>
<updated>2005-04-05T14:55:33Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2005-04-05T14:55:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5251901c9348e633a51b19e875bd904388d7e633'/>
<id>urn:sha1:5251901c9348e633a51b19e875bd904388d7e633</id>
<content type='text'>
during authentication.  Thus we need to call getpwnam *after* the user
has been authenticated.  Colin mentioned that we should also move the
check for root in that case.
</content>
</entry>
<entry>
<title>When PAM support was added to rexecd in revision 1.29 (just prior to</title>
<updated>2005-03-27T13:59:44Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2005-03-27T13:59:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0fcbbd7beaeac8c7ed613ed7c766c6ec5eee15ec'/>
<id>urn:sha1:0fcbbd7beaeac8c7ed613ed7c766c6ec5eee15ec</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Use sysconf(_SC_ARG_MAX) instead of NCARGS.</title>
<updated>2005-03-21T08:01:14Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2005-03-21T08:01:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=13b68b32672e52a75e7e0eb3bf59f856d6f634ec'/>
<id>urn:sha1:13b68b32672e52a75e7e0eb3bf59f856d6f634ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>correct WARNS=6 fix to use cast to (void *).</title>
<updated>2005-03-01T10:55:06Z</updated>
<author>
<name>Hajimu UMEMOTO</name>
<email>ume@FreeBSD.org</email>
</author>
<published>2005-03-01T10:55:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=72847b8fffb94cbc03136593f0a76ee8de11c531'/>
<id>urn:sha1:72847b8fffb94cbc03136593f0a76ee8de11c531</id>
<content type='text'>
use of struct sockaddr_strage * is thought as not good manner. :)
</content>
</entry>
<entry>
<title>If what we have is a struct sockaddr_storage * and what we want is a</title>
<updated>2005-02-23T21:26:55Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2005-02-23T21:26:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6eece4b5f11a719f48cd94cb9bbbc28c4e054796'/>
<id>urn:sha1:6eece4b5f11a719f48cd94cb9bbbc28c4e054796</id>
<content type='text'>
struct sockaddr_storage *, there's no point in casting it prematurely
to a struct sockaddr *.  This unbreaks WARNS=6 on sparc64.
</content>
</entry>
</feed>
