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)
161 compare_sids(const struct cifs_sid *ctsid, const struct cifs_sid *cwsid)
207 is_well_known_sid(const struct cifs_sid *psid, uint32_t *puid, bool is_group)
211 const struct cifs_sid *pwell_known_sid;
263 cifs_copy_sid(struct cifs_sid *dst, const struct cifs_sid *src)
280 id_to_sid(unsigned int cid, uint sidtype, struct cifs_sid *ssid)
284 struct cifs_sid *ksid;
315 (struct cifs_sid *)&sidkey->payload :
316 (struct cifs_sid *)sidkey->payload.data[0];
339 sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid,
521 struct cifs_sid *pownersid,
522 struct cifs_sid *pgrpsid)
524 struct cifs_sid *owner_sid_ptr, *group_sid_ptr;
525 struct cifs_sid *nowner_sid_ptr, *ngroup_sid_ptr;
533 pnntsd->gsidoffset = cpu_to_le32(sidsoffset + sizeof(struct cifs_sid));
539 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd +
541 nowner_sid_ptr = (struct cifs_sid *)((char *)pnntsd + sidsoffset);
548 group_sid_ptr = (struct cifs_sid *)((char *)pntsd +
550 ngroup_sid_ptr = (struct cifs_sid *)((char *)pnntsd + sidsoffset +
551 sizeof(struct cifs_sid));
554 return sidsoffset + (2 * sizeof(struct cifs_sid));
669 static __u16 cifs_copy_ace(struct cifs_ace *dst, struct cifs_ace *src, struct cifs_sid *psid)
689 const struct cifs_sid *psid, __u64 nmode,
762 struct cifs_sid *pownersid, struct cifs_sid *pgrpsid,
933 struct cifs_sid *pownersid,
934 struct cifs_sid *pgrpsid,
970 if (!memcmp(pownersid, pgrpsid, sizeof(struct cifs_sid))) {
1038 struct cifs_sid *pownersid, struct cifs_sid *pgrpsid,
1039 struct cifs_sid *pnownersid, struct cifs_sid *pngrpsid)
1078 struct cifs_sid *pownersid, struct cifs_sid *pgrpsid,
1159 static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
1198 struct cifs_sid *owner_sid_ptr, *group_sid_ptr;
1206 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd +
1208 group_sid_ptr = (struct cifs_sid *)((char *)pntsd +
1260 struct cifs_sid *owner_sid_ptr, *group_sid_ptr;
1261 struct cifs_sid *nowner_sid_ptr = NULL, *ngroup_sid_ptr = NULL;
1276 owner_sid_ptr = (struct cifs_sid *)((char *)pntsd +
1278 group_sid_ptr = (struct cifs_sid *)((char *)pntsd +
1308 nowner_sid_ptr = kzalloc(sizeof(struct cifs_sid),
1337 ngroup_sid_ptr = kzalloc(sizeof(struct cifs_sid),
1633 nsecdesclen = sizeof(struct cifs_ntsd) + (sizeof(struct cifs_sid) * 2);