FreeBSD src
Go to file
Robert Watson a78d3eaffc Tighten up the string->integer conversion in sysctl(8):
(1) Reject zero-length strings for CTLTYPE_INT, _UINT, _LONG,
    _ULONG.  Do not silently convert to 0.

(2) When converting CTLTYPE_INT, _UINT, _LONG, and _ULONG, check the
    end pointer generated by strtol() and strtoul() rather than
    discarding it.  Reject the string if either none of the string
    was useful for conversion to an integer, or if there was
    trailing garbage.

I.e., we will not allow you to set a numeric sysctl to a value unless
we can completely convert the string argument to a numeric value.
I tripped over this when I put the following in /etc/sysctl.conf:

   kern.maxfiles="4000"

Ouch.
2003-06-15 06:26:08 +00:00
bin Get this area compiling with the highest WARNS= that it works with. 2003-06-13 07:04:02 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r115984, 2003-06-07 20:18:23 +00:00
crypto Fix off-by-one and initialization errors which prevented sshd from 2003-05-28 19:39:33 +00:00
etc Update a comment about symlinking named's pid file to correctly 2003-06-14 22:26:30 +00:00
games Fixup three rather minor typos that have irked me over time. 2003-05-31 16:27:53 +00:00
gnu Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
include Finish the repocopy of bitstring.h to sys so it can be used 2003-06-13 19:40:13 +00:00
kerberos5 Remove some KRB4 scraps, and allow NOSHARED make worlds to 2003-05-11 18:49:29 +00:00
lib P_THREADED was renamed to P_SA, follow up. 2003-06-15 03:42:04 +00:00
libexec fix a couple typos in the comments 2003-06-15 03:08:37 +00:00
release Merge the following from the English version: 2003-06-15 02:10:37 +00:00
sbin Tighten up the string->integer conversion in sysctl(8): 2003-06-15 06:26:08 +00:00
secure Fix for the NO_OPENSSL case. 2003-06-08 08:24:07 +00:00
share Catch up man page with reality in rc.d/named. 2003-06-14 22:43:40 +00:00
sys Disable unneeded devices and options. 2003-06-15 04:31:52 +00:00
tools Set the precedence on failure reports to "bulk" so I don't get tons of 2003-06-14 12:36:13 +00:00
usr.bin Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
usr.sbin make rarpd use in_addr_t instead of u_long since this is neccessary 2003-06-15 03:00:22 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
MAINTAINERS Update and try to remain out of area where conflict exists. 2003-06-14 19:27:10 +00:00
Makefile Kill upgrade target docs. It too is stale. 2003-04-03 05:34:36 +00:00
Makefile.inc1 Minor tweaks to the build process so that we can build 5.1-current on 2003-06-14 17:50:13 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Add a retrospective entry about how having installed a broken sed(1) 2003-06-13 20:05:46 +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