freebsd-src/sys
Olivier Certner e1153205a7 Fix 'security.bsd.see_jail_proc' by using cr_bsd_visible()
As implemented, this security policy would only prevent seeing processes
in sub-jails, but would not prevent sending signals to, changing
priority of or debugging processes in these, enabling attacks where
unprivileged users could tamper with random processes in sub-jails in
particular circumstances (conflated UIDs) despite the policy being
enforced.

PR:                     272092
Reviewed by:            mhorne
MFC after:              2 weeks
Sponsored by:           Kumacom SAS
Differential Revision:  https://reviews.freebsd.org/D40628

(cherry picked from commit 5817169bc4)
2023-10-17 16:42:58 -03:00
..
amd64 amd64 db_trace: Reject unaligned frame pointers 2023-10-11 08:10:32 -07:00
arm gic_acpi: Limit the number of CPUs to GIC_MAXCPU 2023-10-11 08:10:32 -07:00
arm64 efirt_machdep.c: Trim some unused includes 2023-10-11 08:10:32 -07:00
bsm
cam cam/scsi: Add sysctl flag CTLFLAG_TUN to loader tunable 2023-10-12 12:08:11 +08:00
cddl dtrace: remove x86 non-EARLY_AP_STARTUP support 2023-10-13 10:13:14 -04:00
compat netlink: move NETLINK define to opt_global.h 2023-10-16 09:42:33 +02:00
conf netlink: move NETLINK define to opt_global.h 2023-10-16 09:42:33 +02:00
contrib zfs: merge openzfs/zfs@95785196f (zfs-2.2-release) into stable/14 2023-10-14 20:29:47 +02:00
crypto
ddb ddb: Add sysctl flag CTLFLAG_TUN to loader tunable 2023-10-12 12:08:18 +08:00
dev vkbd: correct ref count on cloned cdevs 2023-10-16 10:16:01 +03:00
dts
fs fusefs: sanitize FUSE_READLINK results for embedded NULs 2023-10-14 11:57:09 -06:00
gdb
geom
gnu
i386 linux(4): Regen for linux_nosys change 2023-10-10 08:12:12 +03:00
isa
kern Fix 'security.bsd.see_jail_proc' by using cr_bsd_visible() 2023-10-17 16:42:58 -03:00
kgssapi
libkern
modules netlink: move NETLINK define to opt_global.h 2023-10-16 09:42:33 +02:00
net netlink: move NETLINK define to opt_global.h 2023-10-16 09:42:33 +02:00
net80211
netgraph
netinet Fix 'security.bsd.see_jail_proc' by using cr_bsd_visible() 2023-10-17 16:42:58 -03:00
netinet6
netipsec
netlink netlink: move NETLINK define to opt_global.h 2023-10-16 09:42:33 +02:00
netpfil pf: fix SCTP SDT probe 2023-10-12 09:47:06 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc sysentvec: add SV_SIGSYS flag 2023-10-09 06:24:31 +03:00
riscv riscv: Print stval in dump_regs for fatal exceptions 2023-10-11 08:10:32 -07:00
rpc
security cr_canseejailproc(): New privilege, no direct check for UID 0 2023-10-17 16:42:58 -03:00
sys New cr_bsd_visible(): Whether BSD policies deny seeing subjects/objects 2023-10-17 16:42:58 -03:00
teken
tests netlink: move NETLINK define to opt_global.h 2023-10-16 09:42:33 +02:00
tools
ufs
vm swap_pager: Fix a race in swap_pager_swapoff_object() 2023-10-08 20:41:35 -04:00
x86 x86: make EARLY_AP_STARTUP mandatory 2023-10-13 10:13:14 -04:00
xdr
xen
Makefile
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures