diff options
author | jilles <jilles@FreeBSD.org> | 2013-03-02 12:42:23 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-03-02 12:42:23 +0000 |
commit | 869c43b8d97f429d8c3f5ca0accb16b2c17d9416 (patch) | |
tree | 41c62fea73acff337491caf5f63e356b88fc2f53 /lib/libc/sys/stack_protector.c | |
parent | 73650b4f3af1f7c8b2448569209fcdff427c08db (diff) | |
download | FreeBSD-src-869c43b8d97f429d8c3f5ca0accb16b2c17d9416.zip FreeBSD-src-869c43b8d97f429d8c3f5ca0accb16b2c17d9416.tar.gz |
nullfs: Improve f_flags in statfs().
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
Diffstat (limited to 'lib/libc/sys/stack_protector.c')
0 files changed, 0 insertions, 0 deletions