diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2012-01-31 02:11:05 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2012-01-31 02:11:05 +0000 |
commit | 5a011c92854b9f34f83fe9ffeb9c9a4c582fc271 (patch) | |
tree | 46604e89a600b538d177a37084617cd70b71219b /sys/nfsclient | |
parent | a7ddcadb12aee8630a0a25acff174bce79a7071e (diff) | |
download | FreeBSD-src-5a011c92854b9f34f83fe9ffeb9c9a4c582fc271.zip FreeBSD-src-5a011c92854b9f34f83fe9ffeb9c9a4c582fc271.tar.gz |
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
Diffstat (limited to 'sys/nfsclient')
0 files changed, 0 insertions, 0 deletions