Commit Graph

168 Commits

Author SHA1 Message Date
drochner
8fd6dadaf8 include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland
where possible, for consistency and compatibility to FreeBSD
(exception: KAME specific statistics gathering in netstat(1) and systat(1))
2012-01-04 16:09:40 +00:00
wiz
31ed07fa18 Spelling. 2011-11-02 20:27:33 +00:00
wiz
3e94948cb5 New sentence, new line. 2011-11-02 20:26:56 +00:00
christos
fb62226b8d mention macos/x needing -N 2011-11-02 18:12:54 +00:00
christos
5b280d5010 Don't document long defunct flags 2011-11-02 18:09:43 +00:00
joerg
428b619bde ANSIfy. Use __dead. 2011-08-30 20:00:58 +00:00
plunky
87d4f6076b Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
pooka
a5cf1bb4b7 make this compatible with bool.h. no functional change intended. 2009-10-11 16:30:19 +00:00
lukem
0076abc054 Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-17 13:56:33 +00:00
gmcgarry
f9d5e5970d No empty structure initialisation. 2008-08-29 00:50:45 +00:00
lukem
9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
ad
60df1d7038 The ISO stuff has never worked, remove it. 2008-02-27 16:39:17 +00:00
dholland
d7c7049a10 Fix typo in error message 2008-02-09 19:15:59 +00:00
dholland
bf86e75394 Improve an error message. Was buried in PR 6594 from Greg A. Woods. 2008-01-19 23:01:35 +00:00
dholland
c6fda077dc Bail out cleanly if kernel nfs server support is missing, instead of
dumping core.
2008-01-13 16:39:07 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
hubertf
889da1779b * Don't include headers twice
* Remove a few trailing whitespaces
 * Rearrange and join to one #if for some headers

Patch contributed by Slava Semushin <slava.semushin@gmail.com>
in private mail.
2007-01-16 17:32:04 +00:00
wiz
7927d9d5f0 Fix a typo. 2006-10-09 21:36:18 +00:00
apb
4db4ce3a05 Document the -network=netname/prefixlength syntax. Requested in
PR 26891 by Arto Selonen.

Also some mdoc improvements.
2006-10-08 16:35:19 +00:00
wiz
31eaae697a Improve CAVEATS section. Based on mail by yamt@. Bump date. 2006-09-18 16:03:36 +00:00
wiz
6d434b9d71 Drop trailing space. 2006-09-10 22:21:58 +00:00
yamt
ac9e01c324 - discourage nfs re-exporting.
- bump date.
2006-09-08 21:32:05 +00:00
yamt
932de434ea deal with variable-sized filehandles. 2006-09-02 11:10:24 +00:00
christos
1b75c508c8 Programs that had their own efuns, use libutil's now. 2006-08-26 18:15:37 +00:00
martin
b4cb63a646 Make filehandles opaque to userland 2006-07-31 16:34:42 +00:00
yamt
6ea460924a mntsrv: wrap a long line. 2006-07-13 23:18:59 +00:00
martin
a3b5baed42 Fix alignement problems for fhandle_t, exposed by gcc4.1.
While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).
2006-07-13 12:00:24 +00:00
christos
2046b10b5b Coverity CID 601: Remove unused code. 2006-05-25 00:37:03 +00:00
christos
75aa3e0d4e Coverity CID 3308: Free the head of the group list, not the tail. 2006-05-25 00:33:24 +00:00
christos
ebebb0245d Another uninitialized var XXX: GCC 2006-05-14 01:26:34 +00:00
mrg
9ef684e646 pass an array of gid_t, not int, to getgrouplist(). 2006-05-11 07:11:08 +00:00
wiz
2950a17537 Remove last Kerberos 4 support in non-3RDPARTY code. 2006-03-23 23:51:25 +00:00
yamt
db8ef563ea mention /var/db/mountdtab. 2006-01-05 10:41:03 +00:00
yamt
5997340664 do_nfssvc: remove code to go up the path, as it's nonsense and
sometimes even harmful.
2006-01-05 10:38:29 +00:00
christos
11f5327084 Don't log an error if a delete exports request is not supported. Also fix
the error message to print the reason delete exports failed.
2005-12-04 18:01:53 +00:00
yamt
6458fcab9f make -noresvmnt in DEFSET work. 2005-11-18 13:19:48 +00:00
wiz
445258bca4 New sentence, new line. Use more, and more appropriate, mdoc macros. 2005-10-18 11:01:39 +00:00
hubertf
457a6a5c65 mountd's -r option always was a dummy, don't advertize using it.
OK'd by fvdl.
2005-10-18 06:02:59 +00:00
jmmv
2a3e5eeb7c Apply the NFS exports list rototill patch:
- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
2005-09-23 12:10:31 +00:00
wiz
f38e8b27b1 Sync usage with man page. 2005-09-19 22:43:21 +00:00
wiz
ff2f5aac09 Sort options. 2005-09-19 22:43:13 +00:00
christos
089e80014b Allow setting the reserved port we bind, witb -p. I've had this patch for
3 months stashed...
2005-09-19 00:59:56 +00:00
lukem
c8e07a4ef7 appease gcc -Wuninitialized 2005-06-02 05:58:24 +00:00
perseant
127b043e58 Allow exports of LFS filesystems. 2005-04-27 20:32:41 +00:00
briggs
6089355b00 If -d (debug mode) is specified on the command line, include
LOG_PERROR in openlog() to send log output to stderr as well.
Suggested by Darrin Jewell.
2005-03-15 04:54:59 +00:00
wiz
c10c98a855 Add -n and -N to usage. 2005-01-17 15:20:35 +00:00
wiz
70ac99c9d7 Add -N to SYNOPSIS; bump date for new -N flag; sort options. 2005-01-17 15:20:09 +00:00
thorpej
f82a7cafe9 Don't exit if we can't read the exports file; we can still reload it
after a SIGHUP.
2005-01-14 16:16:28 +00:00
thorpej
a25a23d58b Add a -N option that causes all exports to have "-noresvport -noresvmnt"
added to them.
2005-01-14 16:12:46 +00:00
itojun
b95181fc9b NI_WITHSCOPEID was not picked up by IETF standardization process. 2004-11-16 05:59:32 +00:00