Lines Matching refs:SID

146  *		null SID (S-1-0-0)
149 extern const SID *nullsid;
218 * ntfs_sid_to_mbs_size - determine maximum size for the string of a SID
219 * @sid: [IN] SID for which to determine the maximum string size
222 * store the standard textual representation of the SID pointed to by @sid.
228 int ntfs_sid_to_mbs_size(const SID *sid)
266 * ntfs_sid_to_mbs - convert a SID to a multi byte string
267 * @sid: [IN] SID to convert
268 * @sid_str: [OUT] string in which to return the SID (optional)
271 * Convert the SID pointed to by @sid to its standard textual representation.
276 * The standard textual representation of the SID is of the form:
280 * digits as a SID.
281 * - R is the revision level of the SID expressed as a sequence of digits
295 char *ntfs_sid_to_mbs(const SID *sid, char *sid_str, size_t sid_str_size)
304 * check @sid, too. 8 is the minimum SID string size.
2088 const SID *usid; /* owner of file/directory */
2089 const SID *gsid; /* group of file/directory */
2113 gsid = (const SID*)&
2126 usid = (const SID*)&
2190 const SID *usid; /* owner of file/directory */
2191 const SID *gsid; /* group of file/directory */
2213 gsid = (const SID*)&
2218 usid = (const SID*)&
2321 const SID *usid; /* owner of file/directory */
2322 const SID *gsid; /* group of file/directory */
2345 gsid = (const SID*)&
2354 usid = (const SID*)&
2457 const SID *usid; /* owner of file/directory */
2458 const SID *gsid; /* group of file/directory */
2491 gsid = (const SID*)&
2496 usid = (const SID*)&
2576 const SID *usid;
2577 const SID *gsid;
2601 gsid = (const SID*)&
2610 usid = (const SID*)&
2671 const SID *usid;
2672 const SID *gsid;
2703 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2704 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2749 const SID *usid;
2750 const SID *gsid;
2760 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2761 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2814 const SID *usid;
2815 const SID *gsid;
2842 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2843 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2896 const SID *usid;
2897 const SID *gsid;
2947 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2948 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
3025 const SID *usid;
3056 usid = (const SID*)&oldattr
3096 const SID *usid;
3097 const SID *gsid;
3136 usid = (const SID*)&oldattr[le32_to_cpu(phead->owner)];
3138 gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
3271 const SID *usid;
3272 const SID *gsid;
3313 usid = (const SID*)&oldattr[le32_to_cpu(phead->owner)];
3315 gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
3382 SID *sid;
3388 * owner and group SIDs, but structure SID contain only one, so add
3389 * 4 bytes to every SID.
3391 sd_len = sizeof(SECURITY_DESCRIPTOR_ATTR) + 2 * (sizeof(SID) + 4) +
3400 sid = (SID*)((u8*)sd + sizeof(SECURITY_DESCRIPTOR_ATTR));
3408 sid = (SID*)((u8*)sid + sizeof(SID) + 4);
3416 acl = (ACL*)((u8*)sid + sizeof(SID) + 4);
3648 const SID *usid;
3649 const SID *gsid;
3684 gsid = (const SID*)
3689 usid = (const SID*)
3776 const SID *usid;
3777 const SID *gsid;
3816 gsid = (const SID*)
3821 usid = (const SID*)
3885 const SID *usid;
3886 const SID *gsid;
3905 usid = ntfs_find_usid(scx->mapping[MAPUSERS], scx->uid, (SID*)&defusid);
3906 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS], scx->gid, (SID*)&defgsid);
3940 usid = (const SID*)&parentattr[offowner];
3947 gsid = (const SID*)&parentattr[offgroup];
4184 uid_t uid, gid_t gid, const SID *usid)
4188 SID *sid;
4194 sid = (SID*)ntfs_malloc(sidsz);
4267 const SID *usid;
4276 usid = (SID*)&securattr[le32_to_cpu(phead->owner)];
4388 0, 0, (const SID*)&defmap))
4580 const SID *pusid;
4581 const SID *pgsid;
4615 pusid = (const SID*)&attr[offowner];
4626 pgsid = (const SID*)&attr[offgroup];
4733 const SID *powner;
4734 const SID *pgroup;
4829 powner = (const SID*)&newattr[offowner];
4832 powner = (const SID*)&oldattr[offowner];
4852 pgroup = (const SID*)&newattr[offgroup];
4857 pgroup = (const SID*)&oldattr[offgroup];
5234 * Get the mapped user SID
5237 * returns the size of the SID, or zero and errno set if not found
5242 const SID *usid;
5248 usid = ntfs_find_usid(scapi->security.mapping[MAPUSERS], uid, (SID*)&defusid);
5260 * Get the mapped group SID
5263 * returns the size of the SID, or zero and errno set if not found
5268 const SID *gsid;
5274 gsid = ntfs_find_gsid(scapi->security.mapping[MAPGROUPS], gid, (SID*)&defgsid);
5286 * Get the user mapped to a SID
5291 int ntfs_get_user(struct SECURITY_API *scapi, const SID *usid)
5312 * Get the group mapped to a SID
5317 int ntfs_get_group(struct SECURITY_API *scapi, const SID *gsid)