FreeBSD src
Go to file
Pawel Jakub Dawidek 3410b19324 Fix many issues related to mount/unmount:
1. Root from inside a jail was able to unmount any file system
   (except /).
2. Unprivileged root was able to unmount file systems mounted by
   privileged root (execpt /).
3. User from inside a jail was able to mount file system when
   sysctl vfs.usermount was set to 1.
4. User was able to mount file system when vfs.usermount was set to 1
   (that's ok) and unmount it even if vfs.usermount was equal to 0
   (that's not correct).

Possibility from point 1 was reported by: Dariusz Kowalski <darek@76.pl>

Only a part of this fix will be MFC'ed (if approved).

PR:		kern/60149
Reviewed by:	rwatson
Approved by:	scottl (mentor)
MFC after:	3 days
2004-02-02 19:02:05 +00:00
bin Use sys_nsig instead of the static NSIG. DragonflyBSD kill.c:1.3 2004-01-28 19:04:14 +00:00
contrib Make gcc -pthread link to -lpthread instead of -lc_r. 2004-01-30 12:14:19 +00:00
crypto Update the "overview of FreeBSD changes to OpenSSH-portable" to reflect 2004-01-25 13:09:56 +00:00
etc Ruleset numbers are not allowed in devfs_* knobs. 2004-02-02 13:27:41 +00:00
games "The Aged Aged Man" was not a word doubling. 2004-01-19 21:22:21 +00:00
gnu Add a section documenting the return values from diff. 2004-02-01 13:52:19 +00:00
include Add NO_BLUETOOTH knob to the build process 2004-01-28 00:42:51 +00:00
kerberos5 asn1_compile needs roken.h. 2004-02-01 09:30:02 +00:00
lib Bump up the maximum number concurrent threads on x86. 2004-02-01 15:33:01 +00:00
libexec Removed duplicate -lutil. 2004-02-02 18:23:18 +00:00
release Move recent devfs path rules note from userland section to kernel 2004-01-30 18:29:14 +00:00
rescue
sbin Made use of MNT_USER flag and inform about user responsible for mount 2004-02-02 18:37:30 +00:00
secure
share Fix MSIZE definition location. 2004-02-01 22:33:59 +00:00
sys Fix many issues related to mount/unmount: 2004-02-02 19:02:05 +00:00
tools Untaint the hostname before trying to use it on a command line. 2004-02-01 13:50:46 +00:00
usr.bin Fixed style of assignments. 2004-02-02 18:01:19 +00:00
usr.sbin Move the checks for whether or not to build pppctl to 2004-01-31 22:18:09 +00:00
COPYRIGHT Update the COPYRIGHT file to include FreeBSD's compilation copyright 2003-12-31 22:35:22 +00:00
MAINTAINERS I'll continue to babysit the Kerberos-related stuff. 2004-01-30 15:40:33 +00:00
Makefile Put on some factor 30+ bikeshed repellent and export the internal 2003-12-09 02:08:19 +00:00
Makefile.inc1 Overhaul of kerberos5/ makefiles. Most significant changes are: 2004-01-31 08:15:57 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Add a note about the libkse -> libpthread switch. 2004-01-30 12:24:21 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html