Skip to content
  • Rick Macklem's avatar
    nfsd: Fix when NFSERR_WRONGSEC may be replied to NFSv4 clients · a5df139e
    Rick Macklem authored
    Commit d224f05f pre-parsed the next operation number for
    the put file handle operations.  This patch uses this next
    operation number, plus the type of the file handle being set by
    the put file handle operation, to implement the rules in RFC5661
    Sec. 2.6 with respect to replying NFSERR_WRONGSEC.
    
    This patch also adds a check to see if NFSERR_WRONGSEC should be
    replied when about to perform Lookup, Lookupp or Open with a file
    name component, so that the NFSERR_WRONGSEC reply is done for
    these operations, as required by RFC5661 Sec. 2.6.
    
    This patch does not have any practical effect for the FreeBSD NFSv4
    client and I believe that the same is true for the Linux client,
    since NFSERR_WRONGSEC is considered a fatal error at this time.
    
    MFC after:	2 weeks
    a5df139e