freebsd with flexible iflib nic queues
Go to file
Sean Farley 3522c38bbe Detect if the application has cleared the environ variable by setting
the first value (environ[0]) to NULL.  This is in addition to the
current detection of environ being replaced, which includes being set to
NULL.  Without this fix, the environment is not truly wiped, but appears
to be by getenv() until an *env() call is made to alter the enviroment.

This change is necessary to support those applications that use this
method for clearing environ such as Dovecot and Postfix.  Applications
such as Sendmail and the base system's env replace environ (already
detected).  While neither of these methods are defined by SUSv3, it is
best to support them due to historic reasons and in lieu of a clean,
defined method.

Add extra units tests for clearing environ using four different methods:
1. Set environ to NULL pointer.
2. Set environ[0] to NULL pointer.
3. Set environ to calloc()'d NULL-terminated array.
4. Set environ to static NULL-terminated array.

Noticed by:	Timo Sirainen

MFC after:	3 days
2008-08-02 02:34:35 +00:00
bin Pass the correct flags to expandarg() for NFROMFD and NTOFD. This fixes a 2008-07-30 21:07:04 +00:00
cddl Don't need to include vmem.h anymore. 2008-05-23 22:44:46 +00:00
contrib Don't attempt authentication at all if it has been disabled via '-a off'. 2008-07-28 18:58:16 +00:00
crypto Upgrade to OpenSSH 5.1p1. 2008-08-01 02:48:36 +00:00
etc Make freebsd-update IDS not complain about /usr/share/man/cat* by 2008-08-02 00:11:43 +00:00
games o Alan Shepard was first American in the space; fix attribution. 2008-07-22 14:21:56 +00:00
gnu Do not build fbsd-threads.c if we're building a cross-debugger. 2008-08-02 01:21:04 +00:00
include Remove <sgtty.h> now it has no practical usage. 2008-07-25 12:37:46 +00:00
kerberos5 Add roken.h to SRCS. This fixes the compilation of slc during a 2008-06-18 21:20:50 +00:00
lib Detect if the application has cleared the environ variable by setting 2008-08-02 02:34:35 +00:00
libexec Enable GCC stack protection (aka Propolice) for userland: 2008-06-25 21:33:28 +00:00
release Modified release notes: Add one more name to credits on KSE item. 2008-07-29 04:23:18 +00:00
rescue Enable GCC stack protection (aka Propolice) for userland: 2008-06-25 21:33:28 +00:00
sbin Slight wordsmithing. prompted by danger@ 2008-08-01 23:31:28 +00:00
secure Upgrade to OpenSSH 5.1p1. 2008-08-01 02:48:36 +00:00
share Document new IDSIgnorePaths directive. 2008-08-02 00:13:51 +00:00
sys Add ELF relocation types for mips. 2008-08-02 01:20:10 +00:00
tools Detect if the application has cleared the environ variable by setting 2008-08-02 02:34:35 +00:00
usr.bin Tweak the support for using ldd on 32-bit objects a bit further. 2008-08-01 21:52:41 +00:00
usr.sbin Remove a useless cast. 2008-08-02 00:10:02 +00:00
COPYRIGHT Flatten bind9 vendor work area 2008-07-12 05:00:28 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS Update description text 2008-06-06 21:32:01 +00:00
Makefile Properly flatten openssh/dist. 2008-07-22 19:01:18 +00:00
Makefile.inc1 Tweak the support for using ldd on 32-bit objects a bit further. 2008-08-01 21:52:41 +00:00
ObsoleteFiles.inc Remove <sgtty.h> now it has no practical usage. 2008-07-25 12:37:46 +00:00
README Vendor import of OpenSSH 5.1p1 2008-07-23 09:33:08 +00:00
UPDATING o Trim whitespaces. 2008-07-25 09:30:53 +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 ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

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.

rescue		Build system for statically linked /rescue utilities.

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