Lines Matching refs:cifs_sid

30 static const struct cifs_sid sid_everyone = {
33 static const struct cifs_sid sid_authusers = {
37 static const struct cifs_sid sid_unix_users = {1, 1, {0, 0, 0, 0, 0, 22},
41 static const struct cifs_sid sid_unix_groups = { 1, 1, {0, 0, 0, 0, 0, 22},
51 static const struct cifs_sid sid_unix_NFS_users = { 1, 2, {0, 0, 0, 0, 0, 5},
56 static const struct cifs_sid sid_unix_NFS_groups = { 1, 2, {0, 0, 0, 0, 0, 5},
61 static const struct cifs_sid sid_unix_NFS_mode = { 1, 2, {0, 0, 0, 0, 0, 5},
109 sid_to_key_str(struct cifs_sid *sidptr, unsigned int type) in sid_to_key_str()
161 compare_sids(const struct cifs_sid *ctsid, const struct cifs_sid *cwsid) in compare_sids()
207 is_well_known_sid(const struct cifs_sid *psid, uint32_t *puid, bool is_group) in is_well_known_sid()
211 const struct cifs_sid *pwell_known_sid; in is_well_known_sid()
263 cifs_copy_sid(struct cifs_sid *dst, const struct cifs_sid *src) in cifs_copy_sid()
280 id_to_sid(unsigned int cid, uint sidtype, struct cifs_sid *ssid) in id_to_sid()
284 struct cifs_sid *ksid; in id_to_sid()
315 (struct cifs_sid *)&sidkey->payload : in id_to_sid()
316 (struct cifs_sid *)sidkey->payload.data[0]; in id_to_sid()
339 sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, in sid_to_id()
521 struct cifs_sid *pownersid, in copy_sec_desc()
522 struct cifs_sid *pgrpsid) in copy_sec_desc()
524 struct cifs_sid *owner_sid_ptr, *group_sid_ptr; in copy_sec_desc()
525 struct cifs_sid *nowner_sid_ptr, *ngroup_sid_ptr; in copy_sec_desc()
533 pnntsd->gsidoffset = cpu_to_le32(sidsoffset + sizeof(struct cifs_sid)); in copy_sec_desc()
539 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + in copy_sec_desc()
541 nowner_sid_ptr = (struct cifs_sid *)((char *)pnntsd + sidsoffset); in copy_sec_desc()
548 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + in copy_sec_desc()
550 ngroup_sid_ptr = (struct cifs_sid *)((char *)pnntsd + sidsoffset + in copy_sec_desc()
551 sizeof(struct cifs_sid)); in copy_sec_desc()
554 return sidsoffset + (2 * sizeof(struct cifs_sid)); in copy_sec_desc()
669 static __u16 cifs_copy_ace(struct cifs_ace *dst, struct cifs_ace *src, struct cifs_sid *psid) in cifs_copy_ace()
689 const struct cifs_sid *psid, __u64 nmode, in fill_ace_for_sid()
762 struct cifs_sid *pownersid, struct cifs_sid *pgrpsid, in parse_dacl()
933 struct cifs_sid *pownersid, in populate_new_aces()
934 struct cifs_sid *pgrpsid, in populate_new_aces()
970 if (!memcmp(pownersid, pgrpsid, sizeof(struct cifs_sid))) { in populate_new_aces()
1038 struct cifs_sid *pownersid, struct cifs_sid *pgrpsid, in replace_sids_and_copy_aces()
1039 struct cifs_sid *pnownersid, struct cifs_sid *pngrpsid) in replace_sids_and_copy_aces()
1078 struct cifs_sid *pownersid, struct cifs_sid *pgrpsid, in set_chmod_dacl()
1159 static int parse_sid(struct cifs_sid *psid, char *end_of_acl) in parse_sid()
1198 struct cifs_sid *owner_sid_ptr, *group_sid_ptr; in parse_sec_desc()
1206 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + in parse_sec_desc()
1208 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + in parse_sec_desc()
1260 struct cifs_sid *owner_sid_ptr, *group_sid_ptr; in build_sec_desc()
1261 struct cifs_sid *nowner_sid_ptr = NULL, *ngroup_sid_ptr = NULL; in build_sec_desc()
1276 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd + in build_sec_desc()
1278 group_sid_ptr = (struct cifs_sid *)((char *)pntsd + in build_sec_desc()
1308 nowner_sid_ptr = kzalloc(sizeof(struct cifs_sid), in build_sec_desc()
1337 ngroup_sid_ptr = kzalloc(sizeof(struct cifs_sid), in build_sec_desc()
1633 nsecdesclen = sizeof(struct cifs_ntsd) + (sizeof(struct cifs_sid) * 2); in id_mode_to_cifs_acl()