Lines Matching refs:pntace
688 static __u16 fill_ace_for_sid(struct cifs_ace *pntace, in fill_ace_for_sid() argument
697 pntace->type = access_type; in fill_ace_for_sid()
698 pntace->flags = 0x0; in fill_ace_for_sid()
709 pntace->access_req = cpu_to_le32(access_req); in fill_ace_for_sid()
711 pntace->sid.revision = psid->revision; in fill_ace_for_sid()
712 pntace->sid.num_subauth = psid->num_subauth; in fill_ace_for_sid()
714 pntace->sid.authority[i] = psid->authority[i]; in fill_ace_for_sid()
716 pntace->sid.sub_auth[i] = psid->sub_auth[i]; in fill_ace_for_sid()
719 pntace->size = cpu_to_le16(size); in fill_ace_for_sid()
864 unsigned int setup_authusers_ACE(struct cifs_ace *pntace) in setup_authusers_ACE() argument
869 pntace->type = ACCESS_ALLOWED_ACE_TYPE; in setup_authusers_ACE()
870 pntace->flags = 0x0; in setup_authusers_ACE()
871 pntace->access_req = cpu_to_le32(GENERIC_ALL); in setup_authusers_ACE()
872 pntace->sid.num_subauth = 1; in setup_authusers_ACE()
873 pntace->sid.revision = 1; in setup_authusers_ACE()
875 pntace->sid.authority[i] = sid_authusers.authority[i]; in setup_authusers_ACE()
877 pntace->sid.sub_auth[0] = sid_authusers.sub_auth[0]; in setup_authusers_ACE()
880 pntace->size = cpu_to_le16(ace_size); in setup_authusers_ACE()
888 unsigned int setup_special_mode_ACE(struct cifs_ace *pntace, __u64 nmode) in setup_special_mode_ACE() argument
893 pntace->type = ACCESS_DENIED_ACE_TYPE; in setup_special_mode_ACE()
894 pntace->flags = 0x0; in setup_special_mode_ACE()
895 pntace->access_req = 0; in setup_special_mode_ACE()
896 pntace->sid.num_subauth = 3; in setup_special_mode_ACE()
897 pntace->sid.revision = 1; in setup_special_mode_ACE()
899 pntace->sid.authority[i] = sid_unix_NFS_mode.authority[i]; in setup_special_mode_ACE()
901 pntace->sid.sub_auth[0] = sid_unix_NFS_mode.sub_auth[0]; in setup_special_mode_ACE()
902 pntace->sid.sub_auth[1] = sid_unix_NFS_mode.sub_auth[1]; in setup_special_mode_ACE()
903 pntace->sid.sub_auth[2] = cpu_to_le32(nmode & 07777); in setup_special_mode_ACE()
906 pntace->size = cpu_to_le16(ace_size); in setup_special_mode_ACE()
910 unsigned int setup_special_user_owner_ACE(struct cifs_ace *pntace) in setup_special_user_owner_ACE() argument
915 pntace->type = ACCESS_ALLOWED_ACE_TYPE; in setup_special_user_owner_ACE()
916 pntace->flags = 0x0; in setup_special_user_owner_ACE()
917 pntace->access_req = cpu_to_le32(GENERIC_ALL); in setup_special_user_owner_ACE()
918 pntace->sid.num_subauth = 3; in setup_special_user_owner_ACE()
919 pntace->sid.revision = 1; in setup_special_user_owner_ACE()
921 pntace->sid.authority[i] = sid_unix_NFS_users.authority[i]; in setup_special_user_owner_ACE()
923 pntace->sid.sub_auth[0] = sid_unix_NFS_users.sub_auth[0]; in setup_special_user_owner_ACE()
924 pntace->sid.sub_auth[1] = sid_unix_NFS_users.sub_auth[1]; in setup_special_user_owner_ACE()
925 pntace->sid.sub_auth[2] = cpu_to_le32(current_fsgid().val); in setup_special_user_owner_ACE()
928 pntace->size = cpu_to_le16(ace_size); in setup_special_user_owner_ACE()
1043 struct cifs_ace *pntace = NULL; in replace_sids_and_copy_aces() local
1060 pntace = (struct cifs_ace *) (acl_base + size); in replace_sids_and_copy_aces()
1063 if (pnownersid && compare_sids(&pntace->sid, pownersid) == 0) in replace_sids_and_copy_aces()
1064 ace_size = cifs_copy_ace(pnntace, pntace, pnownersid); in replace_sids_and_copy_aces()
1065 else if (pngrpsid && compare_sids(&pntace->sid, pgrpsid) == 0) in replace_sids_and_copy_aces()
1066 ace_size = cifs_copy_ace(pnntace, pntace, pngrpsid); in replace_sids_and_copy_aces()
1068 ace_size = cifs_copy_ace(pnntace, pntace, NULL); in replace_sids_and_copy_aces()
1070 size += le16_to_cpu(pntace->size); in replace_sids_and_copy_aces()
1083 struct cifs_ace *pntace = NULL; in set_chmod_dacl() local
1111 pntace = (struct cifs_ace *) (acl_base + size); in set_chmod_dacl()
1113 if (!new_aces_set && (pntace->flags & INHERITED_ACE)) { in set_chmod_dacl()
1124 if (((compare_sids(&pntace->sid, &sid_unix_NFS_mode) == 0) || in set_chmod_dacl()
1125 (compare_sids(&pntace->sid, pownersid) == 0) || in set_chmod_dacl()
1126 (compare_sids(&pntace->sid, pgrpsid) == 0) || in set_chmod_dacl()
1127 (compare_sids(&pntace->sid, &sid_everyone) == 0) || in set_chmod_dacl()
1128 (compare_sids(&pntace->sid, &sid_authusers) == 0))) { in set_chmod_dacl()
1135 nsize += cifs_copy_ace(pnntace, pntace, NULL); in set_chmod_dacl()
1139 size += le16_to_cpu(pntace->size); in set_chmod_dacl()