HomeFreeBSD

Add support for mounting single files in nullfs

Description

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

Details

Provenance
dfrAuthored on Nov 23 2022, 2:51 PM
Parents
rG78d35459a258: Add vn_path_to_global_path_hardlink
Branches
Unknown
Tags
Unknown