opnsense-src/sys/fs
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
..
autofs autofs: whack an always-false branch 2022-12-19 14:57:47 +00:00
cd9660 cd9660: Use ANSI (c89) prototypes 2022-07-17 08:14:49 -04:00
cuse cuse(3): Cosmetic change about testing boolean values. 2022-10-04 13:51:06 +02:00
deadfs vn_open(): If the vnode is reclaimed during open(2), do not return error. 2021-02-12 03:02:20 +02:00
devfs vfs: always retain path buffer after lookup 2022-09-17 09:10:38 +00:00
ext2fs vfs: make relookup take an additional argument 2022-12-19 08:09:00 +00:00
fdescfs vfs: introduce V_PCATCH to stop abusing PCATCH 2022-09-17 15:41:37 +00:00
fifofs fifos: delegate unhandled kqueue filters to underlying filesystem 2021-10-12 02:43:07 -05:00
fuse Tree-wide replacement of VOP_UNLOCK + vrele combo with vput 2022-11-07 23:34:27 +00:00
mntfs mntfs: lock mntfs pseudo devfs vnode properly 2021-11-13 01:00:41 +02:00
msdosfs vfs: retire the now unused SAVESTART flag 2022-12-19 08:11:08 +00:00
nfs nfs: Fix common typos in source code comments 2022-11-08 14:58:32 +01:00
nfsclient nfscl: Fix the NFSv4.0 mount so that it does not crash 2022-10-15 08:38:07 -07:00
nfsserver nfs: stop using SAVESTART 2022-12-19 08:09:00 +00:00
nullfs Add support for mounting single files in nullfs 2022-12-19 16:46:13 +00:00
procfs vm_pager: Remove references to KVME_TYPE_DEFAULT in the kernel 2022-07-17 07:09:48 -04:00
pseudofs pseudofs: use the vget_prep/vget_finish idiom 2022-09-19 20:08:40 +00:00
smbfs vfs: retire the now unused SAVESTART flag 2022-12-19 08:11:08 +00:00
tmpfs tmpfs_getattr(): Only take vm_object lock on 32bit machines 2022-12-17 19:01:56 +02:00
udf vfs: NDFREE(&nd, NDF_ONLY_PNBUF) -> NDFREE_PNBUF(&nd) 2022-03-24 10:20:51 +00:00
unionfs vfs: retire the now unused SAVESTART flag 2022-12-19 08:11:08 +00:00