summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind
Commit message (Collapse)AuthorAgeFilesLines
* Reallocate a maxlen-long buffer only when the current maxlen ishrs2015-10-061-4/+6
| | | | | shorter than the required length. Note that it rarely happens because maxlen is almost always 128 which covers struct sockaddr_storage.
* Fix a regression with SA-15:24 patch that prevented NIS fromdelphij2015-10-021-4/+7
| | | | working.
* The Sun RPC framework uses a netbuf structure to represent thedelphij2015-09-291-5/+19
| | | | | | | | | | | | | | | | | | | transport specific form of a universal transport address. The structure is expected to be opaque to consumers. In the current implementation, the structure contains a pointer to a buffer that holds the actual address. In rpcbind(8), netbuf structures are copied directly, which would result in two netbuf structures that reference to one shared address buffer. When one of the two netbuf structures is freed, access to the other netbuf structure would result in an undefined result that may crash the rpcbind(8) daemon. Fix this by making a copy of the buffer that is going to be freed instead of doing a shallow copy. Security: FreeBSD-SA-15:24.rpcbind Security: CVE-2015-7236
* Add META_MODE support.sjg2015-06-131-0/+23
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-191-2/+2
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge from headsjg2014-05-081-1/+1
| |\ \
| * \ \ Merge headsjg2014-04-2811-254/+265
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| * | | | Sync with HEAD.obrien2013-02-082-26/+2
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | Reduce overlinking
* | | | | rpcbind does not need to be linked to libutilbapt2014-11-061-2/+2
| |_|_|/ |/| | |
* | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|/ |/| | | | | | | | from the latter.
* | | Disable libwrap (TCP wrappers) support in rpcbind by default, introducingmav2014-03-064-11/+31
| | | | | | | | | | | | | | | | | | | | | | | | new command line options -W, to enable it when needed. On my tests this change by almost ten times improves rpcbind performance. No objections: many, net@
* | | Replace Sun RPC license with a 3-clause BSD license, with the explicithrs2013-11-259-243/+234
| |/ |/| | | | | permission of Sun Microsystems in 2009.
* | Fix socket calls on error post-r243965.kevlo2012-12-211-2/+2
| | | | | | | | Submitted by: Garrett Cooper
* | Fill sin6_scope_id in sockaddr_in6 before passing it from the kernel tohrs2012-11-171-24/+0
|/ | | | | | | | | | | | userland via routing socket or sysctl. This eliminates the following KAME-specific sin6_scope_id handling routine from each userland utility: sin6.sin6_scope_id = ntohs(*(u_int16_t *)&sin6.sin6_addr.s6_addr[2]); This behavior can be controlled by net.inet6.ip6.deembed_scopeid. This is set to 1 by default (sin6_scope_id will be filled in the kernel). Reviewed by: bz
* Spelling fixes for usr.sbin/uqs2011-12-302-3/+3
|
* Use prototype. While I'm there, add a pair of parenthesis to mark an ifdelphij2011-07-145-7/+8
| | | | | | statment's border. MFC after: 1 month
* Fix typos - remove duplicate "the".brucec2011-02-211-1/+1
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Revert bogus change that snuck into r203972.imp2010-02-171-2/+0
|
* The NetBSD Foundation has given permission to remove clause 3 and 4imp2010-02-161-7/+2
| | | | | | from their liceense. Obtained from: NetBSD
* When you have multiple addresses on the same network on differentimp2010-02-093-12/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | interfaces (such as when you are part of a carp pool), and you run rpcbind -h to restrict which interfaces have rpc services, rpcbind can none-the-less return addresses that aren't in the -h list. This patch enforces the rule that when you specify -h on the command line, then services returned from rpcbind must be to one of the addresses listed in -h, or be a loopback address (since localhost is implicit when running -h). The root cause of this is the assumption in addrmerge that there can be only one interface that matches a given network IP address. This turns out not to be the case. To retain historical behavior, I didn't try to fix the routine to prefer the address that the request came into, since I didn't know the side effects that might cause in the normal case. My quick analysis suggests that it wouldn't be a problem, but since this code is tricky I opted for the more conservative patch of only restricting the reply when -h is in effect. Hence, this change will have no effect when you are running rpcbind without -h. Reviewed by: alfred@ Sponsored by: iX Systems MFC after: 2 weeks
* Initialize fromlen before calling recvfrom to avoid passing in randomimp2010-02-071-0/+1
| | | | | | stack garbage. Obtained from: NetBSD 1.13
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-0/+2
|
* No network addresses in the system isn't a good excuseyar2008-02-141-4/+4
| | | | | | | | | for rpcbind(8) to crash. The crash was due to a boolean variable initialized improperly. Besides fixing the initialization, pick a better name for the variable so that its meaning is clear and no more coding errors appear around it.
* Cleanup of userland __P usekevlo2007-11-079-100/+100
|
* Avoid leaking file descriptorsmatteo2007-10-231-3/+7
|
* Remove a comment I forgot to removematteo2007-06-091-1/+1
|
* Correctly inizialize local/unix transport. I broke it in rev.1.15.matteo2007-05-011-97/+162
| | | | | PR: bin/1122566 MFC after: 1 week
* 1)Make it possible for rpcbind(8) to bind TCP listening socket to an IPmatteo2007-04-232-236/+181
| | | | | | | | | | | | other than INADDR_ANY. 2) Add the -6 option to specify "IPv6 only". Glanced at by: bms Requested by: bms [2] PR: bin/84494 [1] Approved by: silence from maintainer (~2 weeks) [1] MFC after: 2 weeks
* Bump .Dd for revision 1.8.ceri2006-11-301-1/+1
|
* o Xr netconfig(5).maxim2006-11-291-0/+1
| | | | | | PR: docs/105720 Submitted by: koitsu MFC after: 1 week
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+2
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Remove including of libc sources. All the required functionsdeischen2006-03-101-8/+2
| | | | | are exported by libc with prototypes in our standard headers. I guess at one time this was necessary, but not any longer.
* Don't build IPv6 support if NO_INET6 was definedmatteo2006-03-061-1/+5
| | | | | | PR: kern/73865 Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com> MFC after: 3 days
* Sort sections.ru2005-01-181-3/+3
|
* Reflect that -h takes an argument and belatedly bump .Dd for addition of -hdd2004-11-071-3/+4
|
* Make the usage message match reality about -h and -w.dd2004-11-071-2/+10
|
* MFNetBSDmbr2004-08-161-1/+5
| | | | | | | Decrease log severity to debug if a protocol is not supported by the kernel (rpcbind checks /etc/netconfig if a protocol is available). This avoids "rpcbind: cannot create socket for tcp6" messages at startup on IPv4-only kernels.
* Don't pass NULL as an integer.mbr2003-10-291-1/+1
| | | | Obtained from: NetBSD
* Don't compare a char to NULL.mbr2003-10-292-3/+3
| | | | Obtained from: NetBSD
* style.Makefile(5)obrien2003-04-041-1/+1
|
* Implement nonblocking tpc-connections. rpcgen -m does stillmbr2003-01-162-5/+14
| | | | | | | | produce backcompatible code. Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-013-6/+6
| | | | especially in troff files.
OpenPOWER on IntegriCloud