]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Sanity check the server reply in _nfs4_server_capabilities
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 4 Nov 2013 20:20:20 +0000 (15:20 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 4 Nov 2013 21:42:52 +0000 (16:42 -0500)
commitec6db30f7e25af42950bdfdfe16488cc6ee9e6df
tree2bc3088ef16b005d3b0760c87e81f6f1e1e56c0b
parent5cefda1e12521a0c57fcacfa4f780cb52f04ec29
NFSv4: Sanity check the server reply in _nfs4_server_capabilities

We don't want to be setting capabilities and/or requesting attributes
that are not appropriate for the NFSv4 minor version.

- Ensure that we clear the NFS_CAP_SECURITY_LABEL capability when appropriate
- Ensure that we limit the attribute bitmasks to the mounted_on_fileid
  attribute and less for NFSv4.0
- Ensure that we limit the attribute bitmasks to suppattr_exclcreat and
  less for NFSv4.1
- Ensure that we limit it to change_sec_label or less for NFSv4.2

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
include/linux/nfs4.h