HardenedBSD src tree
Go to file
Simon J. Gerraty 1554ba03b6 Add mac_grantbylabel
This module allows controlled privilege escallation via mac labels
securely associated with a process via mac_veriexec.

There are over 700 PRIV_* but we can compress many of them into
a single GBL_* thus constraining the size of gbl labels.

The goal is to allow a daemon to run as an unprivileged process while
still being able a set of privileged operations needed.

We add APIs to libveriexec so that userland processes can check labels
and an exec_script API that allows a suitably labeled process to run
something like a python interpreter directly if necessary;
overcomming the 'indirect' flag applied to the interpreter.

Add -l option to sbin/veriexec to report labels.

Reviewed by:	stevek
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D41431
2023-08-24 17:42:11 -07:00
.cirrus-ci
.github
bin ps: add a new option -D to reimplement tree traversal 2023-08-24 18:35:56 +02:00
cddl
contrib unifdef: Reapply our 7102ec5226. 2023-08-21 19:52:25 +02:00
crypto ssh: fix OpenSSH 9.4 regression with multiplexed sessions 2023-08-20 15:20:49 -04:00
etc Add mac_grantbylabel 2023-08-24 17:42:11 -07:00
gnu
include Add mac_grantbylabel 2023-08-24 17:42:11 -07:00
kerberos5
lib Add mac_grantbylabel 2023-08-24 17:42:11 -07:00
libexec rtld: switch from malloc_aligned() to __crt_aligned_alloc() 2023-08-21 17:16:42 +03:00
release Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
rescue Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
sbin Add mac_grantbylabel 2023-08-24 17:42:11 -07:00
secure Makefile.asm: Drop mention of $FreeBSD$ from instructions. 2023-08-22 14:48:40 -07:00
share smartpqi: Use today's date 2023-08-24 16:16:18 -06:00
stand Use 115200 bps by default for serial communication 2023-08-17 13:31:38 -04:00
sys Add mac_grantbylabel 2023-08-24 17:42:11 -07:00
targets
tests tests: Handle SIGSEGV in the vm stack mprotect exec test 2023-08-24 21:02:52 +03:00
tools tools/build/make.py: Make --with-default-sys-path mirror usr.bin/bmake 2023-08-23 17:56:56 +01:00
usr.bin m4 tests: Update tests after $FreeBSD$ removal 2023-08-23 15:44:36 -04:00
usr.sbin syslogd: Add some basic regression tests 2023-08-23 12:17:40 -04:00
.arcconfig
.arclint
.cirrus.yml Cirrus-CI: restore amd64-gcc12 build/test on main 2023-08-18 22:35:39 -04:00
.clang-format
.git-blame-ignore-revs
.gitattributes
.gitignore Import unifdef 2.11 2023-08-21 19:33:26 +02:00
CONTRIBUTING.md
COPYRIGHT
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
Makefile Makefile: Support universe-toolchain on non-FreeBSD 2023-08-23 18:00:16 +01:00
Makefile.inc1 kbdcontrol: Support building as a bootstrap tool on old and non-FreeBSD 2023-08-22 21:00:28 +01:00
Makefile.libcompat build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools submake 2023-08-21 21:00:45 -07:00
Makefile.sys.inc
ObsoleteFiles.inc Fix GoogleTest 1.14.0 import 2023-08-18 19:33:58 -07:00
README.md
RELNOTES RELNOTES: Clarify package building on older branches for 32-bit. 2023-08-17 14:25:44 -07:00
UPDATING UPDATING: add entry for 15.0-CURRENT 2023-08-24 19:45:12 -04:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

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), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
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 Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB 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 (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
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 FreeBSD Handbook.