freebsd-dev/sys/fs/nfsserver
Konstantin Belousov 877d24ac8a Fix the mis-handling of the VV_TEXT on the nullfs vnodes.
If you have a binary on a filesystem which is also mounted over by
nullfs, you could execute the binary from the lower filesystem, or
from the nullfs mount. When executed from lower filesystem, the lower
vnode gets VV_TEXT flag set, and the file cannot be modified while the
binary is active. But, if executed as the nullfs alias, only the
nullfs vnode gets VV_TEXT set, and you still can open the lower vnode
for write.

Add a set of VOPs for the VV_TEXT query, set and clear operations,
which are correctly bypassed to lower vnode.

Tested by:	pho (previous version)
MFC after:	2 weeks
2012-09-28 11:25:02 +00:00
..
nfs_nfsdcache.c hrs@ reported a panic to freebsd-stable@ under the subject line 2012-02-23 16:47:05 +00:00
nfs_nfsdkrpc.c
nfs_nfsdport.c Fix the mis-handling of the VV_TEXT on the nullfs vnodes. 2012-09-28 11:25:02 +00:00
nfs_nfsdserv.c Fix the NFSv4 server so that it returns NFSERR_SYMLINK when 2011-08-20 21:26:35 +00:00
nfs_nfsdsocket.c
nfs_nfsdstate.c Fix two cases in the new NFS server where a tsleep() is 2012-05-12 22:20:55 +00:00
nfs_nfsdsubs.c This patch adds a sysctl to the NFSv4 server which optionally disables the 2011-12-04 16:33:04 +00:00