Skip to content
Commit b944dba3 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent d204c5d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment