Go to file
Mariusz Zaborski 3ed4f7af83 libcasper: fix descriptors numbers
Casper services expect that the first 3 descriptors (stdin/stdout/stderr)
will point to /dev/null. Which Casper will ensure later. The Casper
services are forked from the original process. If the initial process
closes one of those descriptors, Casper may reuse one of them for it on
purpose. If this is the case, then renumarate the descriptors used by
Casper to higher numbers. This is done already after the fork, so it
doesn't break the parent process.

Approved by:	so
Security:	EN-21:19.libcasper
PR:		255339
Reported by:	Borja Marcos <borjam (at) sarenet.es>
Tested by:	jkim@

(cherry picked from commit aa310ebfba)
(cherry picked from commit 4e2ae05c3ae8c470829b4c3a78aa8c34a7f0b617)
2021-06-30 15:35:13 +02:00
bin freebsd-version: fix faulty variable evaluation in make context 2020-12-04 17:17:13 +01:00
cddl src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
contrib contrib/tzdata: import tzdata 2021a 2021-01-29 07:28:43 +01:00
crypto Fix multiple OpenSSL vulnerabilities. Add UPDATING and bump version. 2021-03-26 08:20:06 +01:00
etc src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
gnu src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
include src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
kerberos5 src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
lib libcasper: fix descriptors numbers 2021-06-30 15:35:13 +02:00
libexec HBSD: Set PAX_HARDENING_NOSHLIBRANDOM in the RTLD by default 2020-09-17 10:23:49 -04:00
release src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
rescue src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
sbin dhclient: these ancient patches make no sense to me 2021-06-10 17:32:09 +02:00
secure src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
share ixl: Permit 802.1ad frames to pass though the chip 2021-06-11 08:34:06 +02:00
stand HBSD: do not print this on OPNsense boot 2019-12-09 16:22:52 +01:00
sys pf: always log nat rule and do it pre-rewrite 2021-06-30 09:39:06 +02:00
targets src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
tests src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
tools MFC r353775 2020-11-16 12:40:33 +01:00
usr.bin Fix regression in rpc.rquotad with certain NFS servers. 2020-04-23 16:01:51 +02:00
usr.sbin bsdinstall: change branding 2021-04-19 12:51:23 +02:00
.arcconfig src: switch to release/11.2.0 2018-10-07 14:26:34 +02:00
.arclint src: switch to release/11.2.0 2018-10-07 14:26:34 +02:00
.gitattributes src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
.gitignore src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
COPYRIGHT src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
LOCKS src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
MAINTAINERS src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
Makefile src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
Makefile.inc1 src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
Makefile.libcompat src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
Makefile.sys.inc src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
ObsoleteFiles.inc src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00
README src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
README.md src: clean-cut move to releng/12.1 2019-09-25 16:17:31 +02:00
UPDATING Add UPDATING entries and bump version 2021-06-04 09:31:37 +02:00
UPDATING-HardenedBSD src: merge HardenedBSD releng/12.1 at 7b67f6bef7a6 2019-12-06 14:17:29 +01:00

README.md

FreeBSD Source:

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

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

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. See build(7), config(8), https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html, and https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information, including setting make(1) variables.

Source Roadmap:

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

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.

stand		Boot loader sources.

sys		Kernel sources.

sys/<arch>/conf Kernel configuration files. GENERIC is the configuration
		used in release builds. NOTES contains documentation of
		all possible entries.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

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:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html