Commit Graph

83 Commits

Author SHA1 Message Date
fvdl 376d66b867 Note that -kerb option is not implemented. 2000-02-17 09:05:07 +00:00
enami 700450f288 Backout revision 1.58-1.61; Since we currently only have a way to unexport
per mount point, the way ``try to export and unexport an unnecessary
mount point later'' may leave unwanted information in the kernel, and
doesn't work if a mount point is default exported or publically exported.

To fix the race condtion, we need another way.
2000-02-16 04:08:40 +00:00
dante 963f51342e Fix a bug which caused mountd to don't work at all 2000-02-16 01:27:14 +00:00
enami 2d2a3fa400 Fix path component parsing bug that I've introduced in previous commit. 2000-02-15 04:51:56 +00:00
enami 39fdef6641 If failed to export some mount point, unexport and try again. This is a
workaround to fix the bug that mountd fails to export the currently exported
mount point if it is exported everyone or only export option is changed.
2000-02-03 09:59:22 +00:00
sommerfeld 3fc2334c5d After some light testing, it worked for me, so...
Commit mrg's fix from pr8791: don't un-export filesystems which are just going
to be re-exported; instead, do additions, then deletions.
1999-11-14 14:37:16 +00:00
jdolecek 7ee18b2d1f Add ntfs to the list of exportable filesystem types, now that's it's actually
exportable
1999-09-10 16:20:22 +00:00
mjl fecb1c8c63 Reorder arguments to error message so the message actually makes
sense. Closes PR/ by Martin Berger <>.
1999-08-25 17:26:20 +00:00
simonb 299578ebd5 Spell "privilege" correctly (correct spelling from Jonathan Stone). 1999-08-16 02:59:22 +00:00
perseant 708391677c Add nullfs, umapfs, unionfs to the list of exportable filesystem types, now
that these FSs are in fact exportable.  (Left over from PR 5603.)
1999-08-09 20:22:39 +00:00
thorpej 78688ba793 Use pidfile(3). 1999-06-06 01:50:23 +00:00
christos f3fc048278 iPr/6121: Mycroft, diagnostics messages were not helpful. 1999-01-12 15:11:53 +00:00
christos f4e84d3075 PR/6409: Martin Husemann: /etc/exports parsing breaks if file has empty lines. 1998-11-07 18:31:36 +00:00
christos a8fd643677 free line returned by fparseln(). 1998-11-02 15:38:26 +00:00
christos 337e834927 Initialize struct statfs properly while parsing each line. 1998-11-01 18:30:26 +00:00
christos bfef833a84 fix the size_t printf and initialize lineno. 1998-10-29 14:13:27 +00:00
christos 11cf3e1970 - KNF, remove extraneous casts
- split up parsing code
- centralize malloc checking
- use fparseln.
1998-10-29 12:57:02 +00:00
ross 5a7c45f748 Fix two ancient bugs involving netgroups where mountd may try to free(3)
a string constant in one place and a null char ** in another.  Why the
recent rather minor changes by Christos uncovered these bugs after so much
time is a mystery to me.
1998-10-29 00:12:11 +00:00
christos c7b4cd5f50 Explain what happens when there is no host set specified in the exports
line, or when a netgroup that has no host is in the set.
1998-10-07 14:52:30 +00:00
christos f491057836 Explains what happens when we get SIGTERM... 1998-10-07 14:51:36 +00:00
christos 479c0bbe47 - Add some MIT KRB/NFS pieces, someday I'll commit the rest.
- fix prototypes for signal handlers.
- use constants from rpcsvc/mount.h, instead the RPCMNT crap.
- don't core-dump when finding a netgroup that has no host part,
  complain instead
1998-10-07 14:50:35 +00:00
fvdl e2380de37c Clarify -n comment. 1998-07-15 22:00:59 +00:00
mrg 84ce584a5f - standardise some option processing
- don't bother copying the exports filename, it isn't necessary
- unblock SIGHUP after returning "mount refuse" error
- KNF, and remove the singular register
1998-07-13 14:24:24 +00:00
fair c46ab392dc Principally, change foo(N) to .Xr foo N
Also, do some other mdoc tagging.
1998-04-28 04:07:04 +00:00
fvdl e5bc90f40c Merge with Lite2 + local changes 1998-03-01 02:20:01 +00:00
fvdl ed4bb065a1 When getting an unmount request from a non-reserved port, don't loop
forever.
1998-02-21 23:32:19 +00:00
perry 34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
fvdl 88d9f0f6a9 Add a warning about exporting a filesystem using WebNFS and also exporting
it the normal way, read/write to specific clients.
1997-10-19 15:29:20 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
lukem aa125494d1 - use .Nm instead of .Xr
- don't refer to the command as /sbin/mountd - it's not there anymore
1997-09-14 02:26:14 +00:00
lukem 77735b9c46 update for WARNS?=1
check getopt() against -1 not EOF
1997-08-28 08:09:53 +00:00
lukem 5010818f51 Prevent info gathering attacks by returning EACCES when a directory
doesn't exist as well as when there aren't enough privileges.
As highlighted on BUGTRAQ.
1997-08-28 05:49:15 +00:00
bouyer 2d20417591 Add MOUNT_EXT2FS to the list of filesystem which need to be deleted from
the export list in the kernel when re-reading /etc/exports.
1997-08-13 12:36:04 +00:00
fvdl 5276454896 Document new options. 1997-06-24 23:53:20 +00:00
fvdl 08700bff7f Enable exporting filesystems the WebNFS way. Add the -public, -webnfs
and -index option for that purpose.
1997-06-24 23:50:57 +00:00
fvdl f7d4d2acec Split handling reserved port handling for NFS rpcs and mount rpcs up;
-noresport -> -noresvport, and new option: -noresvmnt

Include a warning in the exports manual page on how -alldirs does
not guarantee that all accesses from a client stay below the mounted
subdirectory.
1997-03-30 20:53:31 +00:00
fvdl 4df5a6390b Checking for the use reserved ports by clients (both for mount/umount
and individual NFS requests) now depends on the '-noresport' option
in the exports file. Checking for reserved ports is the default.

The -n option has become obsolete but is maintained for backwards
compatibility.
1997-03-23 20:58:14 +00:00
mouse 80c0d60f84 alternate -> alternative, per PR 2643 1997-03-08 13:47:08 +00:00
cgd 5dd208e6fc u_long -> u_int32_t when dealing with address lists returned by the resolver. 1996-10-07 22:33:15 +00:00
thorpej 8e6bc9ed5f Correct spelling of `successful'.
From Peter Seebach <seebs@solon.com>, PR #2783.
1996-09-28 15:30:08 +00:00
cgd cec83b8146 declare the variable "bad", used to hold errors, as a long, so it can
safely be xdr_long()ed.
1996-09-19 04:25:08 +00:00
mrg 8849e59abd make some errors more verbose. inspired from pr#1509 1996-05-22 03:50:06 +00:00
fvdl 322cd1a032 Bring in NFSv3 code by Rick Macklem (from Lite2) 1996-02-18 11:57:50 +00:00
jtc 0a1e7de7b6 merge in changes from 1.1 release branch 1995-11-28 05:25:28 +00:00
thorpej 15539710a0 Clear the mount argument list before filling it in. This is the patch
from Michael Hitch in pr#1722.  As noted in the pr, this may not be the
most correct fix, but at least it prevents crashes.
1995-11-16 04:34:13 +00:00
thorpej a752cec2e0 Don't require compiling with -DDEBUG to enable debugging messages. Instead,
add a new option flag "-d", which enables debugging output.  Compile all
of the code that used to be enabled with -DDEBUG unconditionally.  The
amount of extra code is negligable, and all of the tests to check if
debugging is enabled were done regardless of -DDEBUG anyway.  Adjust
SYSLOG() to DTRT if debugging is not enabled.
1995-11-06 07:00:07 +00:00
chopps aabb577203 add adosfs. 1995-08-19 16:08:05 +00:00
mycroft 21258bad26 Allow exporting regular files. 1995-06-22 02:37:38 +00:00
cgd 3d113b326b don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated 1995-06-18 10:58:06 +00:00
mycroft f477ccbfa7 Fix def_anon initializer. 1995-06-09 05:26:58 +00:00