summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
Commit message (Collapse)AuthorAgeFilesLines
* Converted to Lite2 mount interface - use vfc_typenum from thebde1998-01-201-9/+3
| | | | | already looked up vfsconf struct for nfs instead of MOUNT_NFS. Removed related FreeBSD ifdefs.
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-201-2/+1
| | | | the default.
* Oops..The default behaviour should be *not* to log all succeededguido1997-12-131-2/+2
| | | | requests. If you want this extra loggin, add the -l option.
* Fix some style bugs.guido1997-12-102-9/+10
| | | | Submitted by: bruce
* Log all failed mount attempts.guido1997-12-092-9/+59
| | | | | Also add a flag (-l) so mountd will also log all succeeded requests to mountd.
* If a host in an export line in /etc/exports (or within a netgroup onjlemon1997-09-121-7/+18
| | | | | | | | an export line) is unresolvable, make a note of it via syslog and skip that individual host instead of skipping the entire line. PR: 1981, 815 Perused by: joerg
* Plug info agthering attack as pointed out on Bugtraq recently.guido1997-08-291-9/+14
| | | | Obtained from: OpenBSD
* Merge WebNFS support from NetBSD.dfr1997-07-162-2/+47
| | | | Obtained from: NetBSD
* Back out msmith's recent commit which breaks using symbolic names for netmasks.pst1997-04-301-6/+5
| | | | | | Instead, reverse the order of the testing, so if a symbolic name starts with a digit, we'll see if we can make a network address out of it first. If that fails, then we'll call getnet...
* Don't call getnetbyname() on a netmask. On a system with a slow netmsmith1997-04-231-2/+2
| | | | | connection, a large set of network exports could take many minutes to time out, giving the appearance of a total hang during boot.
* Add a -2 flag to mountd to allow an admin to disable NFSv3 services.dfr1997-04-222-7/+20
| | | | This is handy for testing and possibly to work around busted v3 clients.
* Oops...now really commit the doc change.guido1997-04-091-1/+3
|
* Make a sysconfig variable controlling if teh kernel should acceptguido1997-04-091-8/+10
| | | | | | | nfs requests from non-privileged ports. Change mountd such that it does never set this variable, but only clears it when run with -n. Also document this in the man page.
* Don't fail when the vfs.nfs.nfs_privport sysctl doesn't existbde1997-04-011-4/+4
| | | | | | | | | | (presumably because the kernel is old). Moved the declaration of a variable realated to this sysctl outside of an unrelated ifdef. Not fixed: - this sysctl is badly named (nfs occurs twice). - it's silly to have for FreeBSD in FreeBSD code, especially when only half of the FreeBSD-dependent code is ifdefed.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Add code that will reject nfs requests in teh kernel from nonprivilegedguido1997-03-271-1/+14
| | | | | | ports. This option will be automatically set/cleraed when mount is run without/with the -n option. Reviewed by: Doug Rabson
* Add cvs Id.mpp1997-03-121-0/+1
|
* Merge from Lite2 (use new getvfsbyname() and mount(2) interface, cleanup)peter1997-03-114-85/+63
|
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | 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.
* Add one line fix to stop my old 'don't barf if you see the samewpaul1996-08-291-2/+3
| | | | | | | hostname/IP twice on same line in /etc/exports' fix from dumping core due to bogus /etc/exports entries. Submitted by: Toshihiro Kanda <candy@fct.kgc.co.jp>
* Use the .Bx macro where appropriate.mpp1996-08-231-2/+3
|
* Correct some man page cross references and file location references.mpp1996-04-071-1/+1
|
* Fix a bunch of spelling errors.mpp1996-01-291-2/+2
|
* Avoid bogus free() of a junk pointer.joerg1995-11-171-2/+2
| | | | | Detected by: phkmalloc Submitted by: grog@lemis.de (Greg Lehey)
* Just when you thought it was safe...wpaul1995-08-071-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - getnetgrent.c: address some NIS compatibility problems. We really need to use the netgroup.byuser and netgroup.byhost maps to speed up innetgr() when using NIS. Also, change the NIS interaction in the following way: If /etc/netgroup does not exist or is empty (or contains only the NIS '+' token), we now use NIS exclusively. This lets us use the 'reverse netgroup' maps and is more or less the behavior of other platforms. If /etc/netgroup exists and contains local netgroup data (but no '+'). we use only lthe local stuff and ignore NIS. If /etc/netgroup exists and contains both local data and the '+', we use the local data nd the netgroup map as a single combined database (which, unfortunately, can be slow when the netgroup database is large). This is what we have been doing up until now. Head off a potential NULL pointer dereference in the old innetgr() matching code. Also fix the way the NIS netgroup map is incorporated into things: adding the '+' is supposed to make it seem as though the netgroup database is 'inserted' wherever the '+' is placed. We didn't quite do it that way before. (The NetBSD people apparently use a real, honest-to-gosh, netgroup.db database that works just like the password database. This is actually a neat idea since netgroups is the sort of thing that can really benefit from having multi-key search capability, particularly since reverse lookups require more than a trivial amount of processing. Should we do something like this too?) - netgroup.5: document all this stuff. - rcmd.c: some sleuthing with some test programs linked with my own version of innetgr() has revealed that SunOS always passes the NIS domain name to innetgr() in the 'domain' argument. We might as well do the same (if YP is defined). - ether_addr.c: also fix the NIS interaction so that placing the '+' token in the /etc/ethers file makes it seem like the NIS ethers data is 'inserted' at that point. (Chances are nobody will notice the effect of this change, which is just te way I like it. :)
* Changes to support version 3 of the NFS protocol.dfr1995-06-273-85/+189
| | | | | | | | | | | | | | | | | | The version 2 support has been tested (client+server) against FreeBSD-2.0, IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support is stable AFAIK. The version 3 support has been tested with a loopback mount and minimally against an IRIX 5.3 server. It needs more testing and may have problems. I have patched amd to support the new variable length filehandles although it will still only use version 2 of the protocol. Before booting a kernel with these changes, nfs clients will need to at least build and install /usr/sbin/mount_nfs. Servers will need to build and install /usr/sbin/mountd. NFS diskless support is untested. Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-5/+8
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Add a undocumented '-d' flag to set debugging.phk1995-05-211-2/+5
|
* Fixed stupid bug in mountd: it would seem that the kernel doesn't allowwpaul1995-03-261-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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. :)
* Document the mountdtab file in the man page.ats1995-02-221-1/+3
|
* Change obnoxious ``Not root dir'' error message into one which actuallywollman1994-12-021-2/+3
| | | | tells you what's wrong.
* Automatically load NFS and a bevy of other filesystems.wollman1994-09-223-7/+40
|
* Added support for MSDOS file systems.dfr1994-09-191-0/+1
|
* Delete obsolete references to librpc.a.wollman1994-08-081-2/+0
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-2/+2
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* This commit was generated by cvs2svn to compensate for changes in r1558,rgrimes1994-05-261-0/+39
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+39
| | | | | Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-265-0/+2456
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud