1. 08 9月, 2013 3 次提交
    • W
      NFSv4: use mach cred for SECINFO_NO_NAME w/ integrity · b1b3e136
      Weston Andros Adamson 提交于
      Commit 97431204 introduced a regression
      that causes SECINFO_NO_NAME to fail without sending an RPC if:
      
       1) the nfs_client's rpc_client is using krb5i/p (now tried by default)
       2) the current user doesn't have valid kerberos credentials
      
      This situation is quite common - as of now a sec=sys mount would use
      krb5i for the nfs_client's rpc_client and a user would hardly be faulted
      for not having run kinit.
      
      The solution is to use the machine cred when trying to use an integrity
      protected auth flavor for SECINFO_NO_NAME.
      
      Older servers may not support using the machine cred or an integrity
      protected auth flavor for SECINFO_NO_NAME in every circumstance, so we fall
      back to using the user's cred and the filesystem's auth flavor in this case.
      
      We run into another problem when running against linux nfs servers -
      they return NFS4ERR_WRONGSEC when using integrity auth flavor (unless the
      mount is also that flavor) even though that is not a valid error for
      SECINFO*.  Even though it's against spec, handle WRONGSEC errors on
      SECINFO_NO_NAME by falling back to using the user cred and the
      filesystem's auth flavor.
      Signed-off-by: NWeston Andros Adamson <dros@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      b1b3e136
    • T
      NFSv4: Disallow security negotiation for lookups when 'sec=' is specified · 41d058c3
      Trond Myklebust 提交于
      Ensure that nfs4_proc_lookup_common respects the NFS_MOUNT_SECFLAVOUR
      flag.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      41d058c3
    • T
      NFSv4: Fix security auto-negotiation · 5e6b1990
      Trond Myklebust 提交于
      NFSv4 security auto-negotiation has been broken since
      commit 4580a92d (NFS:
      Use server-recommended security flavor by default (NFSv3))
      because nfs4_try_mount() will automatically select AUTH_SYS
      if it sees no auth flavours.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Chuck Lever <chuck.lever@oracle.com>
      5e6b1990
  2. 05 9月, 2013 8 次提交
  3. 04 9月, 2013 12 次提交
  4. 30 8月, 2013 1 次提交
  5. 22 8月, 2013 14 次提交
  6. 08 8月, 2013 2 次提交