christos
03db714fce
- zero out the sockaddr before passing it to the kernel.
...
- print the reason of the export failure.
2003-05-16 14:03:31 +00:00
lukem
e7fa9814b3
clear errno before strtol() if we're going to test it for ERANGE afterwards
2003-04-17 02:41:21 +00:00
wiz
5a91827c81
through, not throught.
2003-01-06 12:29:48 +00:00
fvdl
d4f83aa2bb
Use a non-blocking SVC for TCP connections.
2002-11-08 00:14:50 +00:00
wiz
e9df1e7eda
Drop trailing whitespace.
2002-09-25 00:09:38 +00:00
christos
221d636e59
PR/15692: Love: specify ipsec policy for mountd.
2002-09-21 20:35:00 +00:00
wiz
59652c8572
Punctuation nits.
2002-01-19 03:38:36 +00:00
christos
af0366bdde
use struct uucred.
2001-11-29 21:23:38 +00:00
itojun
c878544aa7
s/IPV6_BINDV6ONLY/IPV6_V6ONLY/ to follow changes made yesterday.
2001-10-16 01:51:26 +00:00
fvdl
17a51bfa67
Don't allow -mask for v6 addresses, otherwise there could be confusion
...
leading to incorrect masks being used. Problem pointed out by
Martin Blapp (mb@imp.ch ) who ported the code to FreeBSD, fixed
differently for the time being.
2001-04-24 15:04:27 +00:00
wiz
c177247450
Xref inet 4, not 5.
2001-04-03 11:27:01 +00:00
enami
e1d0d284cf
Free the storage allocated by fparseln when skipping an empty line.
2000-07-19 08:41:13 +00:00
itojun
b141a4af1e
always check getnameinfo errors. pass NI_WITHSCOPEID to
...
getnameinfo if declared.
2000-07-16 14:07:39 +00:00
itojun
55108de1d4
remove debug printf().
2000-07-16 08:13:34 +00:00
itojun
aa16ae57f1
fatal typo: need listen(tcp6sock).
2000-07-16 08:11:34 +00:00
enami
8ab9946e10
Substitute the cross reference to portmap(8) with rpcbind(8).
2000-07-03 10:06:24 +00:00
thorpej
3a1d089614
Add some extra instrumentation in the `debug' case.
2000-06-27 20:32:28 +00:00
enami
bc066a6ce1
Avoid null pointer dereference; the `addrp' is NULL if a mount point
...
is default exported.
2000-06-21 02:48:31 +00:00
hubertf
25ad63a22f
Tell people how to make the system re-read this file after changing it
...
Fixes PR 10398 by John Refling <refling@comet.lbl.gov>.
2000-06-20 00:54:04 +00:00
fvdl
95e20d99e4
Don't try to push v6 addresses into the kernel when they're not supported.
2000-06-19 23:44:16 +00:00
hannken
a2c3edb415
Fix bad registration of mountd/tcp/v3 on port of mountd/udp/v3.
2000-06-16 11:34:55 +00:00
itojun
1a658c5964
avoid memory leak and duplicated free.
2000-06-13 01:08:43 +00:00
itojun
dbfdf59395
mountd(8) supports scoped IPv6 address properly (exports(5) requires
...
scope identifier). remove mention in BUGS section and add note on
scope identifier.
2000-06-12 15:40:35 +00:00
itojun
20b4e05ffe
check scope id when we compare two AF_INET6 sockaddrs.
...
XXX still not sure if it is enough, so I do not remove warning from
documentation yet.
2000-06-10 08:01:07 +00:00
itojun
1ba6c2716a
support IPv6 addresses start with hex digit or colon (like ::1).
...
in manpages, warn that scoped IPv6 addresses are not supported.
2000-06-10 07:04:13 +00:00
itojun
739ca10641
bark if too-big-masklen on "-network prefix/masklen".
2000-06-10 04:40:17 +00:00
fvdl
65c642a530
Make address handling in mountd more generic, to allow IPv6 mounting.
...
Add IPv6 example to exports manpage. Allow /prefix notation for
networks.
2000-06-09 00:03:31 +00:00
fvdl
548ea61860
Fix last arg to clnt_broadcast.
2000-06-03 14:20:49 +00:00
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
cgd
788733b7a9
typeof(timeval.tv_sec) != time_t
1995-06-07 17:14:21 +00:00
mycroft
7f26bb202e
Set cr_gid properly, and adjust for getgrouplist() change.
1995-06-02 21:04:24 +00:00
jtc
9f28755bff
<sys/syslog.h> -> <syslog.h>
1995-05-28 05:31:01 +00:00
cgd
be68575548
don't build netgroup(5) here.
1995-05-11 23:15:05 +00:00
mycroft
be82a25869
Use POSIX signals.
1995-03-21 18:48:41 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
cgd
06e2955ff1
specify man pages the new way.
1994-12-22 10:44:04 +00:00
cgd
c9117f53b5
-Wall cleanups from Jim Jegers
1994-12-18 00:15:01 +00:00
cgd
d666563b16
deal with RPC protos.
1994-10-31 04:24:32 +00:00
mycroft
ee8aff3286
Register a TCP service.
1994-10-15 03:55:33 +00:00
mycroft
c741ceaa58
Changes to match POSIXication of kill(1).
1994-09-23 23:18:36 +00:00
mycroft
ea7b5d4ec6
Eliminate uses of some obsolete functions.
1994-09-23 14:26:58 +00:00
cgd
eeff5056dd
from branch (oops)
1994-08-12 04:19:50 +00:00
ws
30411e5f60
Make msdosfs exportable
1994-07-18 18:23:24 +00:00
mycroft
625a6892f7
Update from 4.4-Lite, with local changes.
1994-06-08 19:27:32 +00:00
cgd
5123f7879d
don't need -lutil
1994-01-28 00:36:28 +00:00
ws
3f7cb414ea
Try getting the filehandle of the exported path when reading /etc/exports
1994-01-06 22:48:51 +00:00
deraadt
2ceb867c77
allow mounting/exporting of NFS files (not just directories) for diskless
...
swap. thanks to <ws@TooLs.DE> and <roland@frob.com>
1994-01-06 13:51:55 +00:00
jtc
acc61782fb
Fix spelling mistake.
1993-11-19 17:24:58 +00:00
cgd
f69e02fc8e
no more librpc
1993-10-08 02:28:39 +00:00
ws
d3725de8aa
Allow exporting whole directory trees with -alldir option in /etc/exports
1993-09-09 16:34:33 +00:00
ws
053f138dae
Changes to VFS readdir semantics
...
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers
1993-09-07 15:40:14 +00:00