<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/ypserv/yp_access.c, branch release/4.5.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F4.5.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F4.5.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2002-02-04T19:23:45Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2002-02-04T19:23:45Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2002-02-04T19:23:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7ca1cecc77997d9e8c4faef8b7015619c9d9c21d'/>
<id>urn:sha1:7ca1cecc77997d9e8c4faef8b7015619c9d9c21d</id>
<content type='text'>
'RELENG_4_5_0_RELEASE'.

This commit was manufactured to restore the state of the 4.5-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T01:35:59Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T01:35:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=97d92980a96a50750844f420cc225ddf918f0699'/>
<id>urn:sha1:97d92980a96a50750844f420cc225ddf918f0699</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow blank lines in /var/yp/securenets.</title>
<updated>1998-07-15T11:56:28Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>1998-07-15T11:56:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=19111ad38160beefc83ac2e956bebf6a3ba695af'/>
<id>urn:sha1:19111ad38160beefc83ac2e956bebf6a3ba695af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Typos in man page. Cosmetics in error strings.</title>
<updated>1997-10-29T07:25:05Z</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>1997-10-29T07:25:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=988345234d99a627568e5af317ec20f67f39552b'/>
<id>urn:sha1:988345234d99a627568e5af317ec20f67f39552b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert $FreeBSD$ to $Id$</title>
<updated>1997-02-22T16:15:28Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1997-02-22T16:15:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=476602a9d0b9041b42a108349dc58a4ca6bf4223'/>
<id>urn:sha1:476602a9d0b9041b42a108349dc58a4ca6bf4223</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the long-awaited change from $Id$ to $FreeBSD$</title>
<updated>1997-01-14T07:20:47Z</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>1997-01-14T07:20:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1130b656e5fe4c2d1ba299e024d1b40eaeebd380'/>
<id>urn:sha1:1130b656e5fe4c2d1ba299e024d1b40eaeebd380</id>
<content type='text'>
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
</content>
</entry>
<entry>
<title>Eek: the 'check for / in map names' test I added a while back detects</title>
<updated>1997-01-06T06:27:55Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>1997-01-06T06:27:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb73ffc8b7709c026871cb29fe96f642bce2fd63'/>
<id>urn:sha1:cb73ffc8b7709c026871cb29fe96f642bce2fd63</id>
<content type='text'>
slashes in map names but doesn't return failure if it finds them. Add
missing return(1) to fix this.
</content>
</entry>
<entry>
<title>Add support for handling the YP_SECURE and YP_INTERDOMAIN keys from</title>
<updated>1996-10-24T18:58:26Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>1996-10-24T18:58:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4451976029159d285d7682f0740d07cb10cb94c1'/>
<id>urn:sha1:4451976029159d285d7682f0740d07cb10cb94c1</id>
<content type='text'>
any maps that may have them. If the YP_SECURE key is present, ypserv
will only allow access to the map from clients on reserved ports.
If the YP_INTERDOMAIN key is present, the server will do DNS lookups
for hostnames that it can't find in hosts.byname or hosts.byaddr.
This is the same as the -d flag (which is retained for backwards
compatibility) but it can be set on a per-map/per-domain basis.

Also modified /var/yp/Makefile to add YP_INTERDOMAIN to the hosts.*
maps and YP_SECURE to master.passwd.* maps by default.
</content>
</entry>
<entry>
<title>Close a potential security hole: if yp_access() is passed a map name,</title>
<updated>1996-09-30T22:27:00Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>1996-09-30T22:27:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=42c703633d422d510ee2b84ee278c23c794ef170'/>
<id>urn:sha1:42c703633d422d510ee2b84ee278c23c794ef170</id>
<content type='text'>
have it check to see that it doesn't contain any '/' characters. This
prevents possible silliness like ypcat "../../../kernel". We already
test the domain name for this in yp_validdomain(), and ypserv itself
tests the map name in yp_open_db(), but it doesn't hurt to be paranoid
and test for it in the generic access routine too. rpc.ypxfrd does not
test the map name for slashes, but it does call yp_access() with the
map name, so this removes a potential vulnerability from there.

Also make the tests for IPPORT_RESERVED a little more selective: make
sure it trips when map == master.passwd.*, prog == YPPROC and proc ==
YPPROC_XFR, and prog == YPXFRD_FREEBSD_PROG and proc == YPXFRD_GETMAP.
Also use IPPORT_RESERVED instead of hard-coded value.
</content>
</entry>
<entry>
<title>Makefile.yp:</title>
<updated>1996-06-05T02:01:31Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>1996-06-05T02:01:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b3e932340dfea2508fbbc4f8fa226b922970c073'/>
<id>urn:sha1:b3e932340dfea2508fbbc4f8fa226b922970c073</id>
<content type='text'>
- Add a 'pushpw' target that only yppushes the various passwd maps
  and sends a YPPROC_CLEAR to the local ypserv. This will be used by
  rpc.yppasswdd once I merge in the in-place update changes.

yp_access.c:

- Make the yp_access() function print RPC program and procedure numbers
  that it doesn't know about in literal form. This will allow it to work
  with other prgrams that it doesn't know about, like rpc.ypxfrd I'm going
  to import shortly.

yp_dblookup.c:

- Take out the __inline keywords. They weren't really helping me anyway.

- Somehow I broke yp_next() when DB_CACHE wasn't #defined. Fix it.

- Also fix potential case where yp_next() might loop forever; make sure
  it checks the return values of all the (dbp-&gt;seq)()/R_NEXT calls that
  it does as well as comparing keys.
</content>
</entry>
</feed>
