opnsense-src/sys/fs/nullfs
Doug Rabson d373650a53 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

(cherry picked from commit 521fbb722c)
2023-01-06 07:57:57 +00:00
..
null.h Save lower root vnode in nullfs mnt data instead of upper. 2020-01-28 11:29:06 +00:00
null_subr.c vfs: add v_irflag accessors 2021-01-03 06:50:06 +00:00
null_vfsops.c Add support for mounting single files in nullfs 2023-01-06 07:57:57 +00:00
null_vnops.c nullfs(5): Fix a typo in a source code comment 2022-08-10 14:23:45 +02:00