freebsd-skq/usr.sbin
Warner Losh 923dd9a7a7 When you have multiple addresses on the same network on different
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
2010-02-09 18:10:56 +00:00
..
ac Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
accton The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
acpi Merge ACPICA 20100121. 2010-01-21 21:14:28 +00:00
adduser Fix a few whitespace issues and comment typos that I found while reading 2010-01-14 22:04:08 +00:00
amd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ancontrol ANSIfy some more tools in usr.sbin/. 2010-01-02 11:05:34 +00:00
apm The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
apmd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
arp The proxy arp entries could not be added into the system over the 2009-12-30 21:35:34 +00:00
asf The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
audit The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
auditd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
auditreduce The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
authpf The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
bluetooth Teach btpand(8) to recognized Bluetooth device node names. 2009-05-18 16:00:18 +00:00
boot0cfg The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
boot98cfg
bootparamd Unbreak bootparamd when setting WITHOUT_NIS. 2010-01-04 18:08:16 +00:00
bsnmpd Port all applications in usr.sbin/ from libulog to utmpx. 2010-01-13 18:17:53 +00:00
btxld The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
burncd Give the right value when complaining it being wrong. 2010-01-20 18:22:56 +00:00
cdcontrol This now passes a make universe with WARNS=6. 2010-01-07 09:40:34 +00:00
chkgrp The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
chown The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
chroot The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ckdist Constify return value of stripath and avoid unnecessary deconst 2008-11-19 00:09:01 +00:00
clear_locks The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
config The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
cpucontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
crashinfo Set umask to 0x077 instead of the default. This prevents non-root user 2009-11-03 09:17:23 +00:00
cron The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
crunch The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ctm Shrink encoded line length from 76 to 72 characters. 2010-01-24 11:54:32 +00:00
cxgbtool This adds a new "stdio" mode to cxgbtool - it's an interactive mode 2009-06-24 22:28:48 +00:00
daemon The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dconschat The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
devinfo The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
digictl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
diskinfo The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dnssec-dsfromkey The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dnssec-keyfromlabel The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dnssec-keygen The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dnssec-signzone The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dumpcis The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
editmap The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
edquota The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
eeprom The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
extattr Fix a bug when printing attributes from multiple files: buflen could be 2010-01-21 03:49:18 +00:00
extattrctl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
faithd Use the newly brought %U macro. 2010-01-15 16:01:22 +00:00
fdcontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
fdformat The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
fdread The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
fdwrite The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
fifolog The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
flowctl Get the other NG_PATHLEN while I'm here too :(. 2009-06-09 05:24:06 +00:00
freebsd-update Disable SSL renegotiation in order to protect against a serious 2009-12-03 09:18:40 +00:00
ftp-proxy The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
fwcontrol Remove reference to phy_delay from fwcontrol. Thanks for the catch! 2009-02-17 23:56:16 +00:00
getfmac The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
getpmac The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
gssd - Remove superfluous comment 2009-01-30 15:28:56 +00:00
gstat The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
i2c Use our canonical .Dd format. 2009-11-02 12:35:38 +00:00
ifmcstat Merge final round of MLD changes from p4: 2009-05-27 18:57:13 +00:00
inetd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
iostat The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ip6addrctl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ipfwpcap The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
IPXrouted Make IPXrouted compile using Clang by using ANSI function declarations. 2009-03-04 18:36:48 +00:00
jail Add ip4.saddrsel/ip4.nosaddrsel (and equivalent for ip6) to control 2010-01-17 12:57:11 +00:00
jexec The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
jls The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
kbdcontrol ANSIfy some more tools in usr.sbin/. 2010-01-02 11:05:34 +00:00
kbdmap - fix path for locale.alias 2009-04-28 20:20:13 +00:00
kernbb The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
keyserv Rename all symbols in libmp(3) to mp_*, just like Solaris. 2009-02-26 21:43:15 +00:00
kgmon
kgzip
kldxref various cleanups including: 2009-01-06 14:23:38 +00:00
lastlogin Remove unneeded setpassent() calls. 2010-01-24 14:29:40 +00:00
lmcconfig The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
lpr Modernize scandir(3) and alphasort(3) interfaces according to the IEEE 2010-01-04 15:40:17 +00:00
lptcontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mailstats The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mailwrapper The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
makefs Correct copy-paste typo from previous option description. 2010-01-27 07:37:39 +00:00
makemap The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
manctl
memcontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mergemaster Make -U once again honor -D after my change to consolidate setting 2010-01-22 17:17:47 +00:00
mfiutil Update the man page for manual section 8 2009-08-17 06:15:08 +00:00
mixer The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mld6query The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mlxcontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mount_nwfs
mount_portalfs ANSIfy some more tools in usr.sbin/. 2010-01-02 11:05:34 +00:00
mount_smbfs The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mountd Description of steps required to setup NFSv4 server is in nfsv4(4); 2009-12-03 19:16:40 +00:00
moused The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mptable The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mptutil Update the mptutil man page for FreeBSD 8.0 2009-08-17 06:15:44 +00:00
mtest Merge IPv6-capable mtest(8) from MLDv2 branch. 2009-04-29 09:50:04 +00:00
mtree The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
named The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
named-checkconf The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
named-checkzone The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
named.reload
ndiscvt ANSIfy some more tools in usr.sbin/. 2010-01-02 11:05:34 +00:00
ndp The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
newsyslog Add a new option, -P, which reverts newsyslog(8) to the old behavior, 2010-01-20 01:07:38 +00:00
nfscbd - Include rpcv2.h before other NFS includes. That allows nfscbd to 2009-06-20 08:46:40 +00:00
nfsd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
nfsdumpstate Code cleanup for nfs4 utilities: 2009-05-29 22:19:45 +00:00
nfsrevoke Code cleanup for nfs4 utilities: 2009-05-29 22:19:45 +00:00
nfsuserd Code cleanup for nfs4 utilities: 2009-05-29 22:19:45 +00:00
ngctl Add volatile to sig_atomic_t where it was missing. 2009-06-14 21:39:52 +00:00
nghook The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
nologin
nscd The default hash table size is 257 not 255. Reword the rest of the line 2010-01-03 19:28:51 +00:00
ntp Complete ntptrace(8) removal: 2010-01-03 22:29:06 +00:00
nvram The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ofwdump The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pciconf The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
periodic
pkg_install - Add support for UPDATING remote fetching. 2010-01-22 23:32:10 +00:00
pmcannotate The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pmccontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pmcstat The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pnpinfo The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
portsnap The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
powerd Since APM is a legacy technology, that won't be adapted to other 2010-02-04 07:26:26 +00:00
ppp Unbreak world WITHOUT_NETGRAPH. 2010-01-16 12:20:26 +00:00
pppctl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
praliases The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
praudit The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
procctl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pstat The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pw The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pwd_mkdb The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
quot Make `quot -a' work when we've got slashes in the device name. 2008-09-14 11:50:19 +00:00
quotaon The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rarpd
repquota The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rip6query The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rmt The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rndc The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rndc-confgen The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
route6d The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.lockd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.statd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.umntall The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.yppasswdd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.ypupdated The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.ypxfrd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpcbind When you have multiple addresses on the same network on different 2010-02-09 18:10:56 +00:00
rrenumd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rtadvd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rtprio The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rtsold Exclude the interfaces which IPv6 and/or accepting RA is disabled 2010-02-02 18:38:17 +00:00
rwhod Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
sa The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
sade Convert syscons on i386 to TERM=xterm. 2009-11-13 11:28:54 +00:00
sendmail Lower WARNS for sendmail. 2010-01-03 15:32:25 +00:00
service Update the "-l or -r" usage to better conform to the standard 2009-12-27 23:15:23 +00:00
setfib Correct the information about when the respective functionality first 2009-04-23 08:37:56 +00:00
setfmac The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
setpmac The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
sicontrol
smbmsg Use the newly brought %U macro. 2010-01-15 16:01:22 +00:00
snapinfo Mark ftwv as __unused. This compare function does not need it. 2010-01-02 11:06:11 +00:00
spkrtest
spray
sysinstall Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be configured when running ldconfig. 2010-02-08 21:29:34 +00:00
syslogd Port all applications in usr.sbin/ from libulog to utmpx. 2010-01-13 18:17:53 +00:00
tcpdchk The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
tcpdmatch The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
tcpdrop The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
tcpdump The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
timed Port timed away from logwtmp(3). Let it use utmpx. 2010-01-13 18:15:46 +00:00
traceroute Correct spelling. 2010-01-09 15:37:24 +00:00
traceroute6 The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
trpt Fix LLVM compiler errors related to K&R declarations with ANSI prototypes. 2009-02-26 20:59:05 +00:00
tzsetup The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
uathload The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ugidfw In ugidfw(8), print the rule number and rule contents (as parsed and then 2008-12-24 22:40:13 +00:00
uhsoctl Add a driver by Fredrik Lindberg for Option HSDPA USB devices. These differ 2010-01-13 03:16:31 +00:00
usbconfig Print error messages to stderr. 2010-01-10 19:21:23 +00:00
usbdevs The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
vidcontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
vipw The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
wake Anything that casts struct sockaddr * to struct sockaddr_foo is safe 2010-02-09 17:16:13 +00:00
watch Convert the snp(4) driver to use cdevpriv. 2008-08-15 13:07:07 +00:00
watchdogd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
wlandebug The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
wlconfig The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
wpa Enable _DIRENT_HAVE_D_TYPE so wpa_cli scans directories properly 2009-08-23 16:04:10 +00:00
yp_mkdb The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ypbind The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
yppoll The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
yppush The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ypserv Simply ignore unsupported protocols listed in /etc/netconfig and 2010-01-20 16:50:13 +00:00
ypset The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
zic The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
zzz
Makefile Connect smbfs related libraries and tool on sparc64. 2010-01-25 18:52:47 +00:00
Makefile.inc The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00