HardenedBSD src tree
Go to file
Baptiste Daroussin 8aac90f18a mac_do: add a new MAC/do policy and mdo(1) utility
This policy enables a user to become another user without having to be
root (hence no setuid binary). it is configured via rules using sysctl
security.mac.do.rules

For example:
security.mac.do.rules=uid=1001:80,gid=0:any

The above rule means the user identifier by the uid 1001 is able to
become user 80
Any user of the group 0 are allowed to become any user on the system.

The mdo(1) utility expects the MAC/do policy to be installed and its
rules defined.

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D45145
2024-05-22 14:01:41 +02:00
.cirrus-ci
.github Vendor import of libfido2 1.14.0 2024-05-03 20:05:23 -04:00
bin man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
cddl libzpool: Disable -Wpointer-to-int-cast warnings for GCC 2024-05-07 13:54:00 -07:00
contrib libdiff: Detect and recover from file truncation. 2024-05-20 15:26:33 +02:00
crypto heimdal: Fix compiling hdb ldap as a module 2024-04-23 22:54:20 -07:00
etc libdiff: Add a test for the truncation issue. 2024-05-20 15:26:42 +02:00
gnu
include ssp: appease -Wgnu-statement-expression-from-macro-expansion 2024-05-14 18:22:18 -05:00
kerberos5 kerberos5: Mitigate the possibility of using an old libcrypto 2024-01-18 07:12:14 -08:00
lib csu: Find the main pointer through the GOT 2024-05-22 08:18:10 +00:00
libexec Allow DEBUG_SH=rc:all to debug all rc.d 2024-05-21 19:44:20 -07:00
release release: make dependencies, not recursive make 2024-05-09 00:52:25 -07:00
rescue Remove gbde from rescue 2024-05-07 07:23:38 +00:00
sbin ifconfig: Redo fix vlan/vlanproto reconfiguration 2024-05-22 00:35:01 +08:00
secure openssl: don't export nonexistant symbols 2024-04-22 21:28:51 +01:00
share mac_do: add a new MAC/do policy and mdo(1) utility 2024-05-22 14:01:41 +02:00
stand stand/kboot: Fix the linker script OUTPUT_FORMAT 2024-05-22 08:17:52 +00:00
sys mac_do: add a new MAC/do policy and mdo(1) utility 2024-05-22 14:01:41 +02:00
targets Remove gbde from the "userland" pseudo-target 2024-05-07 07:35:14 +00:00
tests if_vlan: handle VID conflicts 2024-05-22 09:08:02 +02:00
tools cryptocheck: Don't test Chacha20-Poly1305 with an IV size of 8 2024-05-21 09:48:50 -07:00
usr.bin mac_do: add a new MAC/do policy and mdo(1) utility 2024-05-22 14:01:41 +02:00
usr.sbin daemon: Add -C (--restart-count) option 2024-05-22 09:45:23 +02:00
.arcconfig
.arclint
.cirrus.yml Vendor import of libcbor 0.11.0 2024-05-03 18:27:44 -04:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.git-blame-ignore-revs Add another commit to .git-blame-ignore-revs 2024-03-15 23:11:52 +00:00
.gitattributes Vendor import of libfido2 1.14.0 2024-05-03 20:05:23 -04:00
.gitignore Vendor import of libfido2 1.14.0 2024-05-03 20:05:23 -04:00
.mailmap mailmap: Translate olce's personal address to olce@FreeBSD.org 2024-01-04 15:59:01 +01:00
CONTRIBUTING.md CONTRIBUTING.md/style: spring cleaning 2024-05-10 15:07:03 -06:00
COPYRIGHT
LOCKS
MAINTAINERS MAINTAINERS: change linuxkpi review Phabricator group. 2024-01-16 19:23:39 +00:00
Makefile contrib/bsddialog: Import version 1.0.2 2024-05-16 15:24:49 +02:00
Makefile.inc1 Improve broken-on-gcc checks 2024-05-17 21:50:57 +01:00
Makefile.libcompat
Makefile.sys.inc
ObsoleteFiles.inc man filesystems: ObsoleteFiles after move to sec 4 2024-05-16 10:25:13 -06:00
README.md contrib/bsddialog: Import version 1.0.2 2024-05-16 15:24:49 +02:00
RELNOTES RELNOTES: Mention hw.snd.version being removed 2024-05-06 20:35:35 +02:00
UPDATING package: move OpenBSM auditing into its own package 2024-04-28 22:33:06 -06: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.

For official FreeBSD bootable images, see the release 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.