freebsd kernel with SKQ
Go to file
Poul-Henning Kamp 59f69ba49f Unsupport forceful unmounts of DEVFS.
After disscussing things I have decided to take the easy and
consistent 90% solution instead of aiming for the very involved 99%
solution.

If we allow forceful unmounts of DEVFS we need to decide how to handle
the devices which are in use through this filesystem at the time.

We cannot just readopt the open devices in the main /dev instance since
that would open us to security issues.

For the majority of the devices, this is relatively straightforward
as we can just pretend they got revoke(2)'ed.

Some devices get tricky:  /dev/console and /dev/tty for instance
does a sort of recursive open of the real console device.   Other devices
may be mmap'ed (kill the processes ?).

And then there are disk devices which are mounted.

The correct thing here would be to recursively unmount the filesystems
mounte from devices from our DEVFS instance (forcefully) and if
this succeeds, complete the forcefully unmount of DEVFS.  But if
one of the forceful unmounts fail we cannot complete the forceful
unmount of DEVFS, but we are likely to already have severed a lot
of stuff in the process of trying.

Event attempting this would be a lot of code for a very far out
corner-case which most people would never see or get in touch with.

It's just not worth it.
2005-01-04 07:52:26 +00:00
bin Remove single line containing the word "KLD" ommitted in ps.1:1.80. 2004-12-22 09:04:47 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r139368, 2004-12-28 04:31:47 +00:00
crypto Better Xlist command line. 2004-10-28 16:13:28 +00:00
etc Changes in comments: 2004-12-25 00:12:27 +00:00
games There is a better way to find out whether a port is installed or not. 2005-01-03 14:17:23 +00:00
gnu A lot of people may want to submit PRs from systems that are not 2004-12-29 19:32:21 +00:00
include Constify arguments. 2005-01-03 02:56:15 +00:00
kerberos5 NODOCCOMPRESS -> NO_DOCCOMPRESS 2004-12-21 09:33:47 +00:00
lib Don't ignore the last line of config file (/etc/hosts, /etc/services, etc) 2005-01-03 11:07:45 +00:00
libexec NOPAM -> NO_PAM 2004-12-21 12:49:24 +00:00
release Refer to Xorg, rather than XFree86. 2004-12-31 14:32:08 +00:00
rescue Don't call "objs" target in rescue.mk twice. 2004-12-23 10:16:46 +00:00
sbin The badsect(8) utility uses atol(), which doesn't allow very good error 2005-01-03 19:03:40 +00:00
secure NOCRYPT -> NO_CRYPT 2004-12-21 10:16:04 +00:00
share There's no longer a wd driver. 2005-01-04 07:28:57 +00:00
sys Unsupport forceful unmounts of DEVFS. 2005-01-04 07:52:26 +00:00
tools Add a simple regression test for mlock()/munlock() to make sure they 2005-01-03 19:56:20 +00:00
usr.bin evise use of queue(9) macros for netipx when used from userspace: 2005-01-02 19:26:06 +00:00
usr.sbin Allow usbd to handle event notificatiosn where mor ethan one 2005-01-04 06:45:41 +00:00
COPYRIGHT Complete 2005 transition. 2005-01-01 07:29:20 +00:00
MAINTAINERS Drop hold on patch. ENOTIME for long-stalled ideas here. Too busy elsewhere. 2004-12-29 03:49:58 +00:00
Makefile NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
Makefile.inc1 Remove the special sparc64 time_t support. 2004-12-29 19:39:06 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Warn about the NOFOO -> NO_FOO conversion, and remind users to 2004-12-23 16:03:08 +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