freebsd-dev/sys
Doug Rabson 521fbb722c Add support for mounting single files in nullfs
The main use-case for this is to support mounting config files and
secrets into OCI containers. My current workaround copies the files into
the container which is messy and risks secrets leaking into container
images if the cleanup fails.

This adds a VFCF flag to indicate whether the filesystem supports file
mounts and allows fspath to be either a directory or a file if the flag
is set.

Test Plan:
$ sudo mkdir -p /mnt
$ sudo touch /mnt/foo
$ sudo mount -t nullfs /COPYRIGHT /mnt/foo

Reviewed by:    mjg, kib
Tested by:      pho
2022-12-19 16:46:13 +00:00
..
amd64 vm: reduce lock contention when processing vm batchqueues 2022-12-14 14:34:07 -05:00
arm
arm64 Add initial clocks support for Rockchip RK3568 SoC. 2022-12-18 12:05:29 +00:00
bsm
cam
cddl kinst: Add per-CPU interrupt trampolines 2022-12-08 15:03:51 -05:00
compat kref: switch internal type to atomic_t and bring back const to kref_read 2022-12-13 20:46:58 +00:00
conf tcp: retire TCPDEBUG 2022-12-14 09:54:06 -08:00
contrib ath: Fix mismatches in array bounds. 2022-12-07 12:30:42 -08:00
crypto aesni: Remove misleading array bounds for aesni_decryt_ecb. 2022-12-07 12:32:19 -08:00
ddb ddb: Don't flag breakpoint/watchpoint commands as MEMSAFE 2022-11-02 13:46:24 -04:00
dev Revert "Enable setting the phy id." 2022-12-19 15:19:57 +00:00
dts
fs Add support for mounting single files in nullfs 2022-12-19 16:46:13 +00:00
gdb
geom
gnu
i386 retire ce(4) driver 2022-12-13 15:24:25 -05:00
isa
kern Add support for mounting single files in nullfs 2022-12-19 16:46:13 +00:00
kgssapi
libkern ashldi3: Use C89-style function definition 2022-11-27 13:23:25 -07:00
modules tcp: retire TCPDEBUG 2022-12-14 09:54:06 -08:00
net debugnet: remove spurious message on boot 2022-12-16 10:30:58 -05:00
net80211 netlink: add interface notification on link status / flags change. 2022-12-09 11:20:07 +00:00
netgraph
netinet Opps take out a stray left behind printf that was 2022-12-14 16:11:39 -05:00
netinet6 udp6: fix build with INET6 and without INVARIANTS 2022-12-07 12:27:15 -08:00
netipsec kdebug_secasv: Update for recent locking changes. 2022-12-15 11:27:39 -08:00
netlink netlink: improve interface handling 2022-12-14 19:52:35 +00:00
netpfil pf: Fix definitions of pf_pfil_*_hooked 2022-12-14 09:29:59 -05:00
netsmb
nfs Allow any user to read the NFS stats, for example with nfsstat(1). 2022-12-01 22:21:14 -07:00
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc vm: reduce lock contention when processing vm batchqueues 2022-12-14 14:34:07 -05:00
riscv
rpc krpc: Allow mountd/nfsd to optionally run in a jail 2022-12-18 12:40:48 -08:00
security vfs: stop using NDFREE 2022-12-19 08:07:23 +00:00
sys Add support for mounting single files in nullfs 2022-12-19 16:46:13 +00:00
teken
tests
tools
ufs vfs: stop using SAVESTART for rename 2022-12-19 08:09:37 +00:00
vm vm_page_grab_valid(): clear *mp in case of pager denying page allocation 2022-12-17 19:01:43 +02:00
x86 Complete retire cp(4) 2022-12-14 11:38:55 +08:00
xdr
xen xenbus: improve device tracking 2022-06-07 12:29:53 +02:00
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.

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
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