freebsd-dev/sys/fs/nullfs
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
..
null_subr.c nullfs: hash insertion without vnode lock upgrade 2022-03-19 10:47:10 +00:00
null_vfsops.c Add support for mounting single files in nullfs 2022-12-19 16:46:13 +00:00
null_vnops.c nullfs(5): Fix a typo in a source code comment 2022-08-07 14:04:53 +02:00
null.h Allow stacked filesystems to be recursively unmounted 2021-07-24 12:52:00 -07:00