]> rtime.felk.cvut.cz Git - linux-imx.git/commit
NFSv4: don't check MAY_WRITE access bit in OPEN
authorWeston Andros Adamson <dros@netapp.com>
Tue, 2 Oct 2012 21:49:51 +0000 (14:49 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Oct 2012 21:55:41 +0000 (14:55 -0700)
commitbbd3a8eee82a2a6f4aa1cce60ccb014f25e5c560
treeb8fb68e90af256e20bb25454a3574326c9824dae
parentddfc4e171292d63d7e3f8c95ff9c3ef9932870ce
NFSv4: don't check MAY_WRITE access bit in OPEN

Don't check MAY_WRITE as a newly created file may not have write mode bits,
but POSIX allows the creating process to write regardless.
This is ok because NFSv4 OPEN ops handle write permissions correctly -
the ACCESS in the OPEN compound is to differentiate READ v EXEC permissions.

Fixes a regression due to commit 6168f62c (NFSv4: Add ACCESS operation to
OPEN compound)

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c