freebsd-skq/sys/nlm
Rick Macklem a8122d16b5 jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011
under the subject "F_RDLCK lock to FreeBSD NFS fails to R/O target file".
This occurred because the server side NLM always checked for VWRITE
access, irrespective of the type of lock request. This patch
replaces VOP_ACCESS(..VWRITE..) with one appropriate to
the lock operation. It allows unlock and lock cancellation
to be done without a check of VOP_ACCESS(), so that files
can't be left locked indefinitely after the file permissions
have been changed.

Discussed with:	zack
Submitted by:	jwd (earlier version)
Reviewed by:	dfr
MFC after:	2 weeks
2012-01-31 02:11:05 +00:00
..
nlm_advlock.c Fix the nlm so that it no longer depends on the regular 2011-01-03 20:37:31 +00:00
nlm_prot_clnt.c Re-implement the client side of rpc.lockd in the kernel. This implementation 2008-06-26 10:21:54 +00:00
nlm_prot_impl.c jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011 2012-01-31 02:11:05 +00:00
nlm_prot_server.c Handle GRANTED_RES messages more gracefully: Send along a grant cookie 2009-10-07 19:50:14 +00:00
nlm_prot_svc.c Don't call svc_freereq() before svc_freeargs(). 2008-11-12 15:30:30 +00:00
nlm_prot_xdr.c Minor changes to improve compatibility with older FreeBSD releases. 2008-03-28 09:50:32 +00:00
nlm_prot.h Re-implement the client side of rpc.lockd in the kernel. This implementation 2008-06-26 10:21:54 +00:00
nlm.h Handle GRANTED_RES messages more gracefully: Send along a grant cookie 2009-10-07 19:50:14 +00:00
sm_inter_xdr.c Minor changes to improve compatibility with older FreeBSD releases. 2008-03-28 09:50:32 +00:00
sm_inter.h