OpenBSD CVS

CVS log for src/sbin/mountd/mountd.c


[BACK] Up to [local] / src / sbin / mountd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.92 / (download) - annotate - [select for diffs], Tue May 21 05:00:47 2024 UTC (2 weeks, 6 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.91: +1 -2 lines
Diff to previous 1.91 (colored)

remove prototypes with no matching function and externs with no var
partly checked by millert@

Revision 1.91 / (download) - annotate - [select for diffs], Thu Mar 2 16:58:43 2023 UTC (15 months, 1 week ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.90: +1 -15 lines
Diff to previous 1.90 (colored)

No need to protect exports from SIGHUP, the handler just sets a flag.
The signal handlers in mountd.c were made safe in rev 1.34 from 2001.
OK bluhm@ kn@

Revision 1.90 / (download) - annotate - [select for diffs], Wed Mar 1 23:27:46 2023 UTC (15 months, 1 week ago) by millert
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored)

Fix potentially uninitialized use of variable fsb on error.
OK mbuhl@

Revision 1.89 / (download) - annotate - [select for diffs], Thu Aug 6 17:57:32 2020 UTC (3 years, 10 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Avoid reading one byte before the path buffer.

This happens when there's only one component (e.g. "/foo"). This
bug has been present since June 1990 when it was commited to mountd.c
SCCS version 5.9.

Note: the bug is on the second changed line, the first line is changed
for visual consistency.

From CheriBSD via FreeBSD

ok millert@ deraadt@

Revision 1.88 / (download) - annotate - [select for diffs], Fri Jan 24 18:51:45 2020 UTC (4 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.87: +6 -3 lines
Diff to previous 1.87 (colored)

simplify, no need to make a copy of the filename, pointer is fine
okay millert@ schwarze@

Revision 1.87 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:45 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.86: +5 -5 lines
Diff to previous 1.86 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.86 / (download) - annotate - [select for diffs], Sat Apr 28 09:56:21 2018 UTC (6 years, 1 month ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.85: +2 -1 lines
Diff to previous 1.85 (colored)

Ignore SIGPIPE in case a TCP client resets the connect

ok otto@

Revision 1.85 / (download) - annotate - [select for diffs], Wed Dec 23 21:32:52 2015 UTC (8 years, 5 months ago) by tim
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.84: +1 -8 lines
Diff to previous 1.84 (colored)

Remove unnecessary SIGSYS/ENOSYS handling for getfh(2).

Encouragement from deraadt@

Revision 1.84 / (download) - annotate - [select for diffs], Wed Dec 23 21:16:17 2015 UTC (8 years, 5 months ago) by tim
Branch: MAIN
Changes since 1.83: +431 -68 lines
Diff to previous 1.83 (colored)

Add privilege separation and pledge().

A privileged (that is, unpledged) child is forked that makes the "unpledgable"
getfh(2) and mount(2) calls. It also takes care of writing /var/db/mountdtab so
that the parent does not have to pledge "cpath wpath".

This, then, allows the parent to pledge "stdio rpath inet dns".

Suggestions and OK deraadt@

Revision 1.83 / (download) - annotate - [select for diffs], Tue Dec 15 18:17:34 2015 UTC (8 years, 5 months ago) by tim
Branch: MAIN
Changes since 1.82: +4 -2 lines
Diff to previous 1.82 (colored)

When (re)reading /etc/exports, handle the case where the mount point of an
export is not also the mount point of a local filesystem. In this case, the
local filesystem would not be removed from the "unexport list", causing the
export to be "unexported" again.

This fix then also allows us to actually delete an export that has been removed
from /etc/exports, by passing the MNT_DELEXPORT export flag to mount(2).

Makes sense to millert@.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Dec 10 17:27:00 2015 UTC (8 years, 6 months ago) by mmcc
Branch: MAIN
Changes since 1.81: +3 -5 lines
Diff to previous 1.81 (colored)

Remove NULL-checks before free(). ok tb@

Revision 1.81 / (download) - annotate - [select for diffs], Thu Aug 20 22:16:35 2015 UTC (8 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

Two reallocarray() conversions that were missed earlier.
OK deraadt@

Revision 1.80 / (download) - annotate - [select for diffs], Thu Aug 20 22:02:21 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.79: +12 -15 lines
Diff to previous 1.79 (colored)

<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert

Revision 1.79 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:59 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.78: +9 -8 lines
Diff to previous 1.78 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.78 / (download) - annotate - [select for diffs], Thu Nov 20 15:22:39 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.77: +1 -2 lines
Diff to previous 1.77 (colored)

remove sys/file.h includes in favor of fcntl.h where needed.
ok deraadt guenther

Revision 1.77 / (download) - annotate - [select for diffs], Wed Oct 22 13:31:04 2014 UTC (9 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.76: +20 -23 lines
Diff to previous 1.76 (colored)

Use svc_getreq_poll() instead of svc_getreqset2() for mountd's
custom svc_run loop.  From Dimitris Papastamos.  OK schwarze@

Revision 1.76 / (download) - annotate - [select for diffs], Sun Aug 24 14:45:00 2014 UTC (9 years, 9 months ago) by doug
Branch: MAIN
Changes since 1.75: +5 -9 lines
Diff to previous 1.75 (colored)

Remove imaginary non-reserved port support from mountd.

This bug was reported by Julian Hsiao.

ok concept deraadt@, miod@
mountd.8 diff is from jmc@.  ok doug@
mountd.c diff is from me.  ok miod@

Revision 1.75 / (download) - annotate - [select for diffs], Fri May 16 17:30:28 2014 UTC (10 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.74: +3 -1 lines
Diff to previous 1.74 (colored)

Zero out grp before re-using it (new ones are already cleared by
calloc).   We only reuse grp when there is an unresolvable host.
Fixes a bug where if a host in a netgroup is unresolvable then
entire netgroup is ignore.  OK krw@

Revision 1.74 / (download) - annotate - [select for diffs], Tue Apr 22 20:25:16 2014 UTC (10 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.73: +3 -5 lines
Diff to previous 1.73 (colored)

malloc/memset -> calloc. from peter malone

Revision 1.73 / (download) - annotate - [select for diffs], Mon Mar 24 00:19:48 2014 UTC (10 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.72: +15 -19 lines
Diff to previous 1.72 (colored)

Split the API: struct ucred remains the kernel internal structure while
struct xucred becomes the structure for syscalls (mount(2) and nfssvc(2)).

ok deraadt@ beck@

Revision 1.72 / (download) - annotate - [select for diffs], Fri Nov 22 04:12:48 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.71: +5 -5 lines
Diff to previous 1.71 (colored)

Whole bunch of (unsigned char) casts carefully added for ctype calls.
Careful second audit by millert

Revision 1.71 / (download) - annotate - [select for diffs], Mon Mar 22 16:35:27 2010 UTC (14 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

report why getgrouplist() failed and for which user, helps with debugging;
ok deraadt@

Revision 1.70 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:33 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.69: +1 -15 lines
Diff to previous 1.69 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.69 / (download) - annotate - [select for diffs], Sun Dec 30 13:41:09 2007 UTC (16 years, 5 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

use the same argument name in synopsis and usage; lowercase "usage:"

ok jmc@

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jun 1 05:37:14 2007 UTC (17 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.67: +1 -4 lines
Diff to previous 1.67 (colored)

remove crufty adosfs.  everytime we try to change a vfs layer interface,
adosfs has the issue and in an entirely different way.  noone uses this
code so this is hte best way to handle the problem
diff from pedro who went to sleep but we need to move ahead; ok thib

Revision 1.67 / (download) - annotate - [select for diffs], Mon May 29 16:49:42 2006 UTC (18 years ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.66: +1 -39 lines
Diff to previous 1.66 (colored)

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@

Revision 1.66 / (download) - annotate - [select for diffs], Sun May 28 23:29:32 2006 UTC (18 years ago) by avsm
Branch: MAIN
Changes since 1.65: +40 -2 lines
Diff to previous 1.65 (colored)

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok

Revision 1.65 / (download) - annotate - [select for diffs], Tue Sep 20 22:40:35 2005 UTC (18 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored)

if we must un-export, only un-export when we do the first call for
each filesystem; ok drahn, specific issue found by otto

Revision 1.64 / (download) - annotate - [select for diffs], Tue Sep 13 02:53:28 2005 UTC (18 years, 9 months ago) by drahn
Branch: MAIN
Changes since 1.63: +60 -17 lines
Diff to previous 1.63 (colored)

Only DELEXPORT filesystems which are not exported. Removes NFS race when
mounting filesystems on nfs servers. Improvements and ok otto@

Revision 1.63 / (download) - annotate - [select for diffs], Fri Apr 8 20:09:38 2005 UTC (19 years, 2 months ago) by jaredy
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.62: +8 -4 lines
Diff to previous 1.62 (colored)

Sync with recent realpath(3) changes:  on failure, don't use the second
argument "resolved", since it is undefined.

ok and help millert, otto

Revision 1.62 / (download) - annotate - [select for diffs], Thu Oct 16 20:14:42 2003 UTC (20 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.61: +11 -11 lines
Diff to previous 1.61 (colored)

Check for signals in local svc_run before doing anything else.  Fixes
the bug where signals would not be handled until the next mount request.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Oct 9 20:33:14 2003 UTC (20 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Remove errant semicolon introduced in rev 1.60; joshua stein

Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 26 16:09:27 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.59: +3 -1 lines
Diff to previous 1.59 (colored)

check strdup failure; ok anil millert

Revision 1.59 / (download) - annotate - [select for diffs], Wed Jun 11 06:22:14 2003 UTC (21 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

ansification

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jun 2 20:06:16 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.57: +2 -6 lines
Diff to previous 1.57 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Mar 16 01:42:27 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Use len+1 as the size parameter to strlcpy() since len does not include
the trailing NUL.  From krw@; deraadt@ OK

Revision 1.56 / (download) - annotate - [select for diffs], Fri Mar 14 00:51:15 2003 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.55: +4 -3 lines
Diff to previous 1.55 (colored)

tweak; millert ok

Revision 1.55 / (download) - annotate - [select for diffs], Thu Mar 13 09:09:26 2003 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.54: +14 -9 lines
Diff to previous 1.54 (colored)

lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu

Revision 1.54 / (download) - annotate - [select for diffs], Sun Mar 9 00:30:24 2003 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.53: +5 -3 lines
Diff to previous 1.53 (colored)

if fopen fails, do not bork; rob@animoid-row.org

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jan 5 22:41:36 2003 UTC (21 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

spelling

Revision 1.52 / (download) - annotate - [select for diffs], Thu Jul 18 08:46:18 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

fix warning

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jul 18 08:41:05 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.50: +8 -9 lines
Diff to previous 1.50 (colored)

de-lint a bit.  use inet_aton(); millert ok

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jul 11 21:23:29 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.49: +7 -1 lines
Diff to previous 1.49 (colored)

malloc() failure tests; rimshot@pandora.be

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jun 29 23:19:49 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.48: +76 -151 lines
Diff to previous 1.48 (colored)

ansi

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jun 9 08:13:08 2002 UTC (22 years ago) by todd
Branch: MAIN
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

rm trailing whitespace

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jun 4 00:09:08 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

spelling; raj@cerias.purdue.edu

Revision 1.46 / (download) - annotate - [select for diffs], Sun May 26 09:24:35 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

pid_t cleanup

Revision 1.45 / (download) - annotate - [select for diffs], Tue Apr 23 18:54:12 2002 UTC (22 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.44: +12 -12 lines
Diff to previous 1.44 (colored)

In mount.h, rename field export -> export_info, to avoid collision with C++.
Synch files that use that field.

(This argument is an internal interface specific to OpenBSD, so it won't
cause compatibility problems.)

(No bump, not an ABI change).

ok art, millert...

Revision 1.44 / (download) - annotate - [select for diffs], Thu Apr 4 20:57:17 2002 UTC (22 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.43: +16 -3 lines
Diff to previous 1.43 (colored)

Add more debugging info in -d mode.  Some from NetBSD (via Brett Eldridge).

Revision 1.43 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:28 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.42: +8 -9 lines
Diff to previous 1.42 (colored)

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)

Revision 1.42 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:36 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.41: +39 -39 lines
Diff to previous 1.41 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Dec 2 02:05:59 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (colored)

remove some };

Revision 1.40 / (download) - annotate - [select for diffs], Sat Nov 17 19:54:57 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

volatile sig_atomic_t

Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 5 07:39:16 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

kill more registers;

millert@ ok

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 3 18:54:29 2001 UTC (22 years, 8 months ago) by hin
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.37: +7 -24 lines
Diff to previous 1.37 (colored)

Remove all traces of Kerberised NFS; it never worked in OpenBSD, but it
has been in the userland tools and the manpages for ages.

Spotted by Lars Hansson <lars@unet.net.ph>

Ok deraadt@
Ok millert@

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jun 14 21:57:44 2001 UTC (23 years ago) by mickey
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

a typo i made

Revision 1.36 / (download) - annotate - [select for diffs], Fri May 11 18:35:21 2001 UTC (23 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.35: +6 -14 lines
Diff to previous 1.35 (colored)

use strlcpy instead of strncpy+a[len-1]='\0'

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jan 17 19:27:11 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.34: +10 -5 lines
Diff to previous 1.34 (colored)

make send_umntall() handler safe also

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 16 02:59:46 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +51 -5 lines
Diff to previous 1.33 (colored)

use a private svc_run(), which looks at a global touched by SIGHUP handler

Revision 1.33 / (download) - annotate - [select for diffs], Sat Dec 30 06:18:27 2000 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.32: +9 -9 lines
Diff to previous 1.32 (colored)

Don't do a getnetbyname() if the address is in dot notation already;
solves a DNS-related deadlock. Patch by gluk@ptci.ru (PR 1582)

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jul 5 23:41:10 2000 UTC (23 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.31: +1 -16 lines
Diff to previous 1.31 (colored)

remove SYSLOG(), unused function

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 3 17:58:19 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.30: +10 -6 lines
Diff to previous 1.30 (colored)

Fix behavior when a host is unresolvable.  Mark it as type GT_IGNORE
so we don't get an error that inadvertainly causes the entry
to get exported to the world.  Also keep a count of unresolved hosts
and error out sanely on lines w/ no resolvable hosts.  Work by
myself and provos@

Revision 1.30 / (download) - annotate - [select for diffs], Mon May 1 20:20:12 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.29: +6 -1 lines
Diff to previous 1.29 (colored)

Remove trailing '/' in exports pathnames so mount requests will match
properly.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 21 02:13:57 1999 UTC (25 years, 1 month ago) by alex
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Typo in diagnostic; gonter@whisky.wu-wien.ac.at

Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 7 21:02:08 1999 UTC (25 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.27: +11 -2 lines
Diff to previous 1.27 (colored)

Only throw away a line with an empty exports list if the list is empty
due to unresolvable hostnames.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Dec 28 08:04:27 1998 UTC (25 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +128 -207 lines
Diff to previous 1.26 (colored)

some cleanup, in preperation for a rewrite of the racy guts

Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 11 16:18:36 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

proper name is -network not -net; d

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jun 23 23:34:14 1998 UTC (25 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +7 -2 lines
Diff to previous 1.24 (colored)

handle (,,dom); joerg

Revision 1.24 / (download) - annotate - [select for diffs], Sun Mar 1 20:06:30 1998 UTC (26 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.23: +5 -1 lines
Diff to previous 1.23 (colored)

If an /etc/exports entry has a single host that cannot be looked
up, throw out the entire line.  A previous change that only throws
out unknown hosts could leave the export host list null (ie:
everyone) if all the listed hosts are unknown.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Dec 19 09:21:40 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +8 -2 lines
Diff to previous 1.22 (colored)

make mountd abort if getfh() not supported. reported by newsham@secnet.com, fixed by me

Revision 1.22 / (download) - annotate - [select for diffs], Mon Sep 29 19:31:05 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.21: +11 -7 lines
Diff to previous 1.21 (colored)

Don't ignore a line w/ a bogus hostname, just ignore the bogus hostname...

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 13 12:24:49 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

annoying indentation botch

Revision 1.20 / (download) - annotate - [select for diffs], Wed Aug 13 18:59:26 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

handle ext2fs specially

Revision 1.19 / (download) - annotate - [select for diffs], Sat Aug 9 12:59:14 1997 UTC (26 years, 10 months ago) by niklas
Branch: MAIN
Changes since 1.18: +7 -5 lines
Diff to previous 1.18 (colored)

struct statfs uses a signed short f_flags field.  This field is used in
the long (the type) expression that makes up the mount flags field passed
to mount(2).  If we are dealing with a noatime mount this means sign
extension will occur and the flag field will get messed up.  I.e. noatime
mounts (at least rw ones) ended up not exportable.  I fixed this by casting
to u_short in the expressions, but I would like to change struct statfs
instead, but that is an API issue it is not for me to decide on.
I also added error decoding in two syslog calls.

This was made possible by the arglist heuristics printout of OpenBSD/alpha
DDB :-)

Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 6 01:45:21 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +12 -2 lines
Diff to previous 1.17 (colored)

do not clobber errno in signal handlers

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jun 24 20:59:10 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +12 -12 lines
Diff to previous 1.16 (colored)

in_addr_t all over

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 4 21:05:28 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.15: +5 -3 lines
Diff to previous 1.15 (colored)

Fix writing of pid file.  From Matthieu Herrb <Mathieu.Herrb@mipnet.fr>
Closes OpenBSD PR#178

Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 11 17:09:02 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.14: +43 -22 lines
Diff to previous 1.14 (colored)

 - check existing pid file and don't start up if there is already
   a mountd running
 - if there is a problem with an entry in an exports line don't
   throw away the whole line unless it is obviously bogus.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 15 23:41:28 1997 UTC (27 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 10 07:26:45 1996 UTC (27 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +31 -29 lines
Diff to previous 1.12 (colored)

64 bit & -Wall cleanup

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 5 23:14:27 1996 UTC (27 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.11: +14 -9 lines
Diff to previous 1.11 (colored)

Stop info gathering attack pointed out by Alan Cox <alan@cymru.net>
Only return ENOENT if the dir trying to be mounted is really exported
to the client.  Return EACCESS if not exported.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Sep 28 05:47:42 1996 UTC (27 years, 8 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Correct spelling, from NetBSD PR#2783, seebs@taniemarie.solon.com.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 19 06:12:08 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

bad is long for xdr_long(); from cgd@netbsd

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 29 17:41:32 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

bogus exports entry crash; from candy@fct.kgc.co.jp

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 2 10:43:56 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

permit -alldirs, but document it

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 25 15:57:20 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +20 -5 lines
Diff to previous 1.6 (colored)

from wpaul@freebsd, more than a year ago: only put each host to export to
onto the export list once.
from jeorg@freebsd/grog@lemis.de, also, strdup() to avoid a later crash
in free().

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 21 00:16:16 1996 UTC (28 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.5: +116 -55 lines
Diff to previous 1.5 (colored)

From NetBSD: Merge of 960317

Revision 1.5 / (download) - annotate - [select for diffs], Wed Dec 27 12:32:42 1995 UTC (28 years, 5 months ago) by david
Branch: MAIN
Changes since 1.4: +10 -3 lines
Diff to previous 1.4 (colored)

If mountd is unable to export a filesystem due to a hostname being invalid
or specified on two (conflicting) lines it now logs the offending hostname

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 14 01:33:26 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +15 -15 lines
Diff to previous 1.3 (colored)

from netbsd:
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.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 13 05:07:16 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

fix mounting two filesystems on the same point; from osymh@gemini.oscs.montana.edu; netbsd pr#1722

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 6 21:11:25 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

complete ufs -> ffs change (From John Kohl; PR #1403)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:42 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:43:42 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.