HardenedBSD/usr.sbin
Bill Paul 8b5a6d67db Fixed stupid bug in mountd: it would seem that the kernel doesn't allow
you to push the same host into its NFS export lists twice, but mountd
tries to do it anyway. This means that putting:

/some_file_system -ro host1 host1

in your /etc/exports file causes an error. This is bogus: mountd should be
smart enough to ignore the second instance of host1. This can be a problem
in some configurations that use netgroups. For example, each host in my
netgroups database is has two entries:

startide (startide,-,) (startide.ctr.columbia.edu,-,)

When mountd sees this, it tries to put startide.ctr.columbia.edu into the
export list *twice*. Just listing 'startide' /etc/exports list will also
screw up because mountd will try to resolve the netgroup 'startide' instead
of the hostname 'startide.'

My solution is watch for duplicate entries in get_host() and mark them
as grouptype GT_IGNORE, which do_mount() will now cheefully throw away.
This is a bit of a kludge, but it was the least obtrusive fix I could
come up with.

Also silenced a compiler warning: arguments passwd to xdr_long() should
be u_long, not int. :)
1995-03-26 23:36:38 +00:00
..
ac
accton Changed a ACCTON 1 to a ACCTON 8 . 1994-12-12 00:32:36 +00:00
adduser o more options 1995-03-08 22:44:37 +00:00
amd 1. Get all the nodes in this texinfo document happily pointing in the proper 1995-02-19 09:11:07 +00:00
apm
apmconf
arp
bad144
bootparamd Stop callbootd from dumping core when attempting to directly query a 1995-03-26 03:15:39 +00:00
bootpd
bootpef
bootpgw
bootptest
cdplay Use CDPLAY environment variable to not type argument each time 1995-02-22 01:45:03 +00:00
chown
chroot
config Change warning message for when a device is wired to a floating 1995-03-07 11:03:42 +00:00
config.new
cron Now crontab works not only for vi editor, i.e. refers to 1994-12-21 11:06:08 +00:00
crunch Need /usr/src/sbin/i386 in srcdirs to get fdisk. 1995-03-10 08:36:19 +00:00
ctm Fixed a bug so that a delta#0 can be applied. 1995-03-26 20:09:52 +00:00
dbsym
dev_mkdb
diskpart
edquota
eeprom
fdcontrol
fdformat
fdwrite
inetd Disable UDP service looping attack. 1994-12-21 19:08:45 +00:00
iostat
kbdcontrol Added h option for setting the historysize. 1995-01-30 21:41:14 +00:00
kbdmap kbdfont -> vidfont for greater commonality with kbdcontrol/vidcontrol 1995-03-24 04:36:19 +00:00
kernbb Added the kernbb program. No man-page yet :( 1995-03-10 08:53:55 +00:00
kgmon
kvm_mkdb Speed kvm_mkdb up by a factor 5 or thereabout. Rewrote all the fseek/fread 1995-01-10 18:37:12 +00:00
lpr Add missing ${.CURDIR} 1995-01-24 08:30:13 +00:00
lptcontrol
lsdev Moved "#include <pci/pcivar.h>" from "usr.sbin/lsdev/i386.c" 1995-02-04 12:47:19 +00:00
manctl I've found two bugs in manctl(8). There are two spurious ";" after a "then" 1995-02-15 00:07:59 +00:00
mixer non-X mixer, useful into rc.local 1995-02-15 17:33:04 +00:00
mount_portalfs Use POSIX.2 regular expressions, get rid of libcompat. 1995-02-21 04:05:20 +00:00
mountd Fixed stupid bug in mountd: it would seem that the kernel doesn't allow 1995-03-26 23:36:38 +00:00
mrouted This set of patches enables IP multicasting to work under FreeBSD. I am 1995-03-16 16:25:55 +00:00
mtree mtree * MD5 = better security 1995-02-10 03:12:42 +00:00
named Convert from using old root.cache to new named.root 1995-03-23 08:43:07 +00:00
ncrcontrol Reading NCR registers is not secure at all times, so prevent 1995-03-16 15:10:11 +00:00
nfsd Add support for kerberised NQNFS. 1995-01-30 18:56:06 +00:00
nologin
nslookup
pcvt Adding the various documentation files that are accompanying 1995-03-05 22:50:24 +00:00
pkg_install Rename TMPDIR to PKG_TMPDIR, just to make Jeff happy.. :-) 1995-02-16 12:43:00 +00:00
pkg_manage pkg_manage utility, using file selector 1995-02-15 20:47:56 +00:00
portmap
ppp Adding GETTING START and so on. 1995-03-12 12:03:48 +00:00
pppd
pppstats Changed a PPSTATS 1 to PPPSTATS 8 . 1994-12-12 00:36:41 +00:00
pstat Submitted by: John Capo 1994-12-28 00:47:03 +00:00
pwd_mkdb Add what looks to be the right fix to this bogus code. 1995-03-24 16:07:09 +00:00
quot
quotaon
rarpd Make sure we free() the result returned to us by yp_match(). 1995-03-26 02:37:00 +00:00
repquota
rmt OK, we changed our mind again: -ln -s ... 1995-02-24 04:16:26 +00:00
routed
rtprio
rwhod
sa
sendmail Remove Matt Day patch (handled elsewhere in 8.6.11) 1995-03-10 05:12:47 +00:00
sgsc sgsc - utility to control the Genius GS-4500 scanner. 1995-01-07 14:17:22 +00:00
sliplogin
slstat Change a SLSTAT 1 to SLSTAT 8 . 1994-12-12 00:38:01 +00:00
spkrtest Change ${COPY} to -c, always needed here 1994-12-31 11:13:52 +00:00
swapinfo
sysctl Implement maxprocperuid and maxfilesperproc. They are tunable 1995-02-20 19:42:42 +00:00
syslogd Updates from Peter da Silva to match the recent syslogd changes. 1995-01-04 00:40:38 +00:00
tcpdump Add -I.' to CFLAGS in order to fix the make depend' problem. 1995-03-09 12:15:17 +00:00
timed
traceroute
trpt Fix a little typo. Change the "race record" to a "trace record" :-). 1995-02-10 22:07:42 +00:00
trsp
tzsetup
update
vidcontrol remove option "-s saver" from usage() 1995-03-03 21:21:24 +00:00
vipw Fix suspended vipw hangs 1995-03-09 21:53:12 +00:00
vnconfig The changes to support the new flags in the vn driver. 1995-03-11 09:33:25 +00:00
watch same 1995-02-27 19:48:19 +00:00
XNSrouted
xntpd Enable DES if NOCRYPT is not set and and the user has the secure sources. 1995-03-23 19:13:04 +00:00
xten Make Makefile take a relative path for CFLAGS. 1995-01-17 15:07:13 +00:00
ypbind Submitted by: Sebastian Strollo <seb@erix.eriksson.se> 1995-02-26 04:42:48 +00:00
yppoll
ypset
zic
Makefile Added the kernbb program. No man-page yet :( 1995-03-10 08:53:55 +00:00
Makefile.inc