summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd/mountd.c
Commit message (Collapse)AuthorAgeFilesLines
* (1) Remove ISO support, it's dead in the kernel anyway.billf1999-11-121-94/+6
| | | | | | | | | (2) Check for ENOENT when checking for /var/db/mountdtab (3) Remove a signal handler that called broken functions. (4) Remove the broken functions. Submitted by: Martin Blapp <mb@imp.ch> Reviewed by: bde (1), billf ([234])
* Put the umount request through the same translation as the mountalfred1999-10-061-2/+11
| | | | | | | | | request. Fix some uninitialized warnings and a style bug while we are here. Problem still exists where a failed umount can be misreported as success. Submitted by: Martin Blapp <mb@imp.ch>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Typo fix in diagnostic: -alldir --> -alldirsalex1999-04-211-2/+2
| | | | | PR: 11049 Submitted by: Gerhard Gonter <gonter@whisky.wu-wien.ac.at>
* Here is a patch to make mountd work.dfr1998-12-291-21/+21
| | | | | | | | | It just replace u_long with u_int32_t and shouldn't affect on i386. Without this patch, - unaligned accesses occur - permission denied randomly Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* Fixed printf format errors.bde1998-08-021-2/+2
|
* Correct improper use of .Sm. Document -d flag. Correct use of .Nm. Removecharnier1998-07-151-84/+90
| | | | | unused #includes. Add usage(). Use warnx(). Correct spelling. Abort when malloc() fails.
* A long time ago I hacked mountd so that it would deal intelligentlywpaul1998-06-251-3/+5
| | | | | | | | | | with export lines where the same hostname was specified more than once (this happens a lot with netgroups sometimes). Recently I discovered that it needs to be hacked to deal with multiple instances of the same IP address too. I've been using this modification locally for several months with no hassles.
* Oops, the previous commit missed one line of code.joerg1998-06-151-1/+2
|
* Watch out for null hostnames in netgroup entries, to avoid dumping core.joerg1998-06-151-2/+4
| | | | | | This happens if someone tries to export to a netgroup like: mygroup (,,mynisdomain)
* 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.
* 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-101-3/+4
| | | | Submitted by: bruce
* Log all failed mount attempts.guido1997-12-091-7/+53
| | | | | 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-161-1/+12
| | | | 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-221-5/+13
| | | | This is handy for testing and possibly to work around busted v3 clients.
* 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
* Merge from Lite2 (use new getvfsbyname() and mount(2) interface, cleanup)peter1997-03-111-71/+42
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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>
* Avoid bogus free() of a junk pointer.joerg1995-11-171-2/+2
| | | | | Detected by: phkmalloc Submitted by: grog@lemis.de (Greg Lehey)
* Changes to support version 3 of the NFS protocol.dfr1995-06-271-78/+169
| | | | | | | | | | | | | | | | | | 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. :)
* 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-221-3/+17
|
* Added support for MSDOS file systems.dfr1994-09-191-0/+1
|
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+2005
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud