mirror of
https://github.com/opnsense/src.git
synced 2026-02-25 19:05:20 -05:00
Include some flags of the nullfs mount itself: MNT_RDONLY, MNT_NOEXEC, MNT_NOSUID, MNT_UNION, MNT_NOSYMFOLLOW. This allows userland code calling statfs() or fstatfs() to see these flags. In particular, this allows opendir() to detect that a -t nullfs -o union mount needs deduplication (otherwise at least . and .. are returned twice) and allows rtld to detect a -t nullfs -o noexec mount as noexec. Turn off the MNT_ROOTFS flag from the underlying filesystem because the nullfs mount is definitely not the root filesystem. Reviewed by: kib MFC after: 1 week |
||
|---|---|---|
| .. | ||
| null.h | ||
| null_subr.c | ||
| null_vfsops.c | ||
| null_vnops.c | ||