1. 13 2月, 2013 1 次提交
    • E
      nfsd: Handle kuids and kgids in the nfs4acl to posix_acl conversion · ab8e4aee
      Eric W. Biederman 提交于
      In struct nfs4_ace remove the member who and replace it with an
      anonymous union holding who_uid and who_gid.  Allowing typesafe
      storage uids and gids.
      
      Add a helper pace_gt for sorting posix_acl_entries.
      
      In struct posix_user_ace_state to replace uid with a union
      of kuid_t uid and kgid_t gid.
      
      Remove all initializations of the deprecated posic_acl_entry
      e_id field.  Which is not present when user namespaces are enabled.
      
      Split find_uid into two functions find_uid and find_gid that work
      in a typesafe manner.
      
      In nfs4xdr update nfsd4_encode_fattr to deal with the changes
      in struct nfs4_ace.
      
      Rewrite nfsd4_encode_name to take a kuid_t and a kgid_t instead
      of a generic id and flag if it is a group or a uid.  Replace
      the group flag with a test for a valid gid.
      
      Modify nfsd4_encode_user to take a kuid_t and call the modifed
      nfsd4_encode_name.
      
      Modify nfsd4_encode_group to take a kgid_t and call the modified
      nfsd4_encode_name.
      
      Modify nfsd4_encode_aclname to take an ace instead of taking the
      fields of an ace broken out.  This allows it to detect if the ace is
      for a user or a group and to pass the appropriate value while still
      being typesafe.
      
      Cc: "J. Bruce Fields" <bfields@fieldses.org>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
      ab8e4aee
  2. 13 10月, 2012 1 次提交
  3. 27 5月, 2012 1 次提交
  4. 26 5月, 2012 1 次提交
  5. 25 5月, 2012 2 次提交
  6. 06 3月, 2012 1 次提交
  7. 18 2月, 2012 1 次提交
  8. 19 10月, 2011 1 次提交
  9. 28 8月, 2011 1 次提交
  10. 01 8月, 2011 1 次提交
  11. 13 7月, 2011 3 次提交
  12. 30 5月, 2011 1 次提交
  13. 30 4月, 2011 1 次提交
  14. 31 3月, 2011 1 次提交
  15. 25 3月, 2011 1 次提交
  16. 24 3月, 2011 1 次提交
  17. 12 1月, 2011 2 次提交
  18. 18 12月, 2010 1 次提交
  19. 25 10月, 2010 3 次提交
  20. 02 10月, 2010 1 次提交
  21. 31 7月, 2010 1 次提交
  22. 06 12月, 2009 2 次提交
  23. 09 9月, 2009 1 次提交
  24. 11 7月, 2009 1 次提交
  25. 18 6月, 2009 3 次提交
  26. 04 4月, 2009 3 次提交
  27. 08 1月, 2009 1 次提交
  28. 24 6月, 2008 1 次提交
  29. 11 7月, 2007 1 次提交
    • J
      NFS4: on a O_EXCL OPEN make sure SETATTR sets the fields holding the verifier · aa53ed54
      Jeff Layton 提交于
      The Linux NFS4 client simply skips over the bitmask in an O_EXCL open
      call and so it doesn't bother to reset any fields that may be holding
      the verifier. This patch has us save the first two words of the bitmask
      (which is all the current client has #defines for). The client then
      later checks this bitmask and turns on the appropriate flags in the
      sattr->ia_verify field for the following SETATTR call.
      
      This patch only currently checks to see if the server used the atime
      and mtime slots for the verifier (which is what the Linux server uses
      for this). I'm not sure of what other fields the server could
      reasonably use, but adding checks for others should be trivial.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      aa53ed54