summaryrefslogtreecommitdiffstats
path: root/sbin/mountd
Commit message (Collapse)AuthorAgeFilesLines
* give the "netgrent" functions a home in netdb.halfred2001-03-271-5/+0
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-2/+1
| | | | - MAN[1-9] -> MAN.
* Replace pmap_unset() with rpcb_unset() which fixes the unregistering.alfred2001-03-251-2/+2
| | | | Submitted by: Martin Blapp <mb@imp.ch>
* Deal with lack of IPv6 support gracefully.alfred2001-03-251-4/+8
| | | | Submitted by: Martin Blapp <mb@imp.ch>
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-191-252/+624
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* Switch to using a struct xucred instead of a struct xucred when notgreen2001-02-181-12/+12
| | | | | | | | | | | | | | | | | actually in the kernel. This structure is a different size than what is currently in -CURRENT, but should hopefully be the last time any application breakage is caused there. As soon as any major inconveniences are removed, the definition of the in-kernel struct ucred should be conditionalized upon defined(_KERNEL). This also changes struct export_args to remove dependency on the constantly-changing struct ucred, as well as limiting the bounds of the size fields to the correct size. This means: a) mountd and friends won't break all the time, b) mountd and friends won't crash the kernel all the time if they don't know what they're doing wrt actual struct export_args layout. Reviewed by: bde
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2001-01-161-3/+3
|
* Prepare for mdoc(7)NG.ru2000-12-181-3/+4
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-203-4/+4
|
* Explain why adding ``options NFSKERB'' breaks the kernel build.sheldonh2000-08-111-0/+3
| | | | | | PR: 10642 Reported by: Stefan Eggers <seggers@semyam.dinoco.de> Submitted by: johan
* Explicitly state that mountd can be made to re-read the exports file,sheldonh2000-07-031-0/+19
| | | | | | even though this may seem obvious to some folks. Requested by: obrien
* Correct an xref.mpp2000-05-051-1/+3
| | | | | PR: doc/13218 Submitted by: phantom
* Remove more single-space hard sentence breaks.sheldonh2000-03-021-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-012-9/+18
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Fix various man pages to stop abusing the .Bx macro to generatempp2000-01-231-2/+2
| | | | | the strings "FreeBSD" and "NetBSD". Use the .Fx or .Nx macro instead.
* Added ntfs filesystem to be exported.semenu1999-12-031-0/+4
|
* (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-285-5/+5
|
* Add $Id$ to these manpages.nik1999-07-121-0/+1
| | | | Approved by: bde
* Xref mountd in text.kris1999-05-291-2/+3
| | | | Submitted by: Philippe Charnier
* Typo fix in diagnostic: -alldir --> -alldirsalex1999-04-211-2/+2
| | | | | PR: 11049 Submitted by: Gerhard Gonter <gonter@whisky.wu-wien.ac.at>
* Change LKM/modload to KLD/kldload.ghelmer1999-04-081-4/+4
| | | | Submitted by: Nathan Ahlstrom <nrahlstr@winternet.com>
* 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>
* Spelling.mckay1998-10-151-2/+2
|
* Fixed printf format errors.bde1998-08-021-2/+2
|
* Correct improper use of .Sm. Document -d flag. Correct use of .Nm. Removecharnier1998-07-154-153/+189
| | | | | 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)
* PR: docs/3636thepish1998-06-071-1/+1
| | | | | Submitted by: Gary Palmer gpalmer@FreeBSD.ORG Add mention of the 1024-character line length limit on the netgroup database.
* 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
|
OpenPOWER on IntegriCloud