<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.sbin/rpcbind/check_bound.c, branch stable/10</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F10</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F10'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2016-06-08T17:09:47Z</updated>
<entry>
<title>MFC r300942:</title>
<updated>2016-06-08T17:09:47Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2016-06-08T17:09:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=25f78f5bce8ccee86a876b873d6361f392307e54'/>
<id>urn:sha1:25f78f5bce8ccee86a876b873d6361f392307e54</id>
<content type='text'>
Remove a useless if (x != NULL) check before calling free on allocated_uaddr
</content>
</entry>
<entry>
<title>MFC r293229, r293833 to usr.sbin/rpcbind</title>
<updated>2016-03-17T20:00:49Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2016-03-17T20:00:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=536049395ba568e4cb28560df86ff301d3b6d037'/>
<id>urn:sha1:536049395ba568e4cb28560df86ff301d3b6d037</id>
<content type='text'>
r293833 | asomers | 2016-01-13 10:33:50 -0700 (Wed, 13 Jan 2016) | 16 lines

Fix Coverity warnings regarding r293229

rpcbind/check_bound.c
        Fix CID1347798, a memory leak in mergeaddr.

rpcbind/tests/addrmerge_test.c
        Fix CID1347800 through CID1347803, memory leaks in ATF tests.  They
        are harmless because each ATF test case runs in its own process, but
        they are trivial to fix.  Fix a few other leaks that Coverity didn't
        detect, too.

r293229 | asomers | 2016-01-05 17:00:11 -0700 (Tue, 05 Jan 2016) | 36 lines

"source routing" in rpcbind

Fix a bug in rpcbind for multihomed hosts. If the server had interfaces on
two separate subnets, and a client on the first subnet contacted rpcbind at
the address on the second subnet, rpcbind would advertise addresses on the
first subnet. This is a bug, because it should prefer to advertise the
address where it was contacted. The requested service might be firewalled
off from the address on the first subnet, for example.

usr.sbin/rpcbind/check_bound.c
        If the address on which a request was received is known, pass that
        to addrmerge as the clnt_uaddr parameter. That is what addrmerge's
        comment indicates the parameter is supposed to mean. The previous
        behavior is that clnt_uaddr would contain the address from which the
        client sent the request.

usr.sbin/rpcbind/util.c
        Modify addrmerge to prefer to use an IP that is equal to clnt_uaddr,
        if one is found. Refactor the relevant portion of the function for
        clarity, and to reduce the number of ifdefs.

etc/mtree/BSD.tests.dist
usr.sbin/rpcbind/tests/Makefile
usr.sbin/rpcbind/tests/addrmerge_test.c
        Add unit tests for usr.sbin/rpcbind/util.c:addrmerge.

usr.sbin/rpcbind/check_bound.c
usr.sbin/rpcbind/rpcbind.h
usr.sbin/rpcbind/util.c
        Constify some function arguments
</content>
</entry>
<entry>
<title>Spelling fixes for usr.sbin/</title>
<updated>2011-12-30T10:58:14Z</updated>
<author>
<name>Ulrich Spörlein</name>
<email>uqs@FreeBSD.org</email>
</author>
<published>2011-12-30T10:58:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3df5ecac8c5e0a9105ba0e783bd9e7077df944e7'/>
<id>urn:sha1:3df5ecac8c5e0a9105ba0e783bd9e7077df944e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cleanup of userland __P use</title>
<updated>2007-11-07T10:53:41Z</updated>
<author>
<name>Kevin Lo</name>
<email>kevlo@FreeBSD.org</email>
</author>
<published>2007-11-07T10:53:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=784bddbc5bca158d2fb57eed7c5e4ceebd49ff8b'/>
<id>urn:sha1:784bddbc5bca158d2fb57eed7c5e4ceebd49ff8b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>WARNS=3 safety (mostly), use __unused for unused params and unsigned where</title>
<updated>2002-10-07T02:56:59Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-10-07T02:56:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4180788ff0b0d196798f837e12d771df307560ed'/>
<id>urn:sha1:4180788ff0b0d196798f837e12d771df307560ed</id>
<content type='text'>
needed to avoid warnings about comparing signed and unsigned values.
</content>
</entry>
<entry>
<title>Stop this program's abuse of malloc(3).  Its return value doesn't need these</title>
<updated>2002-05-17T05:27:52Z</updated>
<author>
<name>Juli Mallett</name>
<email>jmallett@FreeBSD.org</email>
</author>
<published>2002-05-17T05:27:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2244ec01639e893fbe25f11d8894aced4889b6ec'/>
<id>urn:sha1:2244ec01639e893fbe25f11d8894aced4889b6ec</id>
<content type='text'>
ugly explicit casts, and its argument doesn't need explicitly cast to u_int,
especially if sizeof() is being used.
</content>
</entry>
<entry>
<title>Fix a memory leak in check_bound() by freeing the buffer area of</title>
<updated>2001-07-14T17:17:48Z</updated>
<author>
<name>Ian Dowse</name>
<email>iedowse@FreeBSD.org</email>
</author>
<published>2001-07-14T17:17:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c8a28c2ec9d16becbfe9bbf62972e60dfb7e7344'/>
<id>urn:sha1:c8a28c2ec9d16becbfe9bbf62972e60dfb7e7344</id>
<content type='text'>
the netbuf before freeing the netbuf structure itself.
</content>
</entry>
<entry>
<title>Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and</title>
<updated>2001-03-19T12:50:13Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2001-03-19T12:50:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8360efbd6c932013ffdb2f83d2f2de4278febb5e'/>
<id>urn:sha1:8360efbd6c932013ffdb2f83d2f2de4278febb5e</id>
<content type='text'>
associated changes that had to happen to make this possible as well as
bugs fixed along the way.

  Bring in required TLI library routines to support this.

  Since we don't support TLI we've essentially copied what NetBSD
  has done, adding a thin layer to emulate direct the TLI calls
  into BSD socket calls.

  This is mostly from Sun's tirpc release that was made in 1994,
  however some fixes were backported from the 1999 release (supposedly
  only made available after this porting effort was underway).

  The submitter has agreed to continue on and bring us up to the
  1999 release.

  Several key features are introduced with this update:
    Client calls are thread safe. (1999 code has server side thread
    safe)
    Updated, a more modern interface.

  Many userland updates were done to bring the code up to par with
  the recent RPC API.

  There is an update to the pthreads library, a function
  pthread_main_np() was added to emulate a function of Sun's threads
  library.

  While we're at it, bring in NetBSD's lockd, it's been far too
  long of a wait.

  New rpcbind(8) replaces portmap(8) (supporting communication over
  an authenticated Unix-domain socket, and by default only allowing
  set and unset requests over that channel). It's much more secure
  than the old portmapper.

  Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded
  to support TI-RPC and to support IPV6.

  Umount(8) is also fixed to unmount pathnames longer than 80 chars,
  which are currently truncated by the Kernel statfs structure.

Submitted by: Martin Blapp &lt;mb@imp.ch&gt;
Manpage review: ru
Secure RPC implemented by: wpaul
</content>
</entry>
</feed>
