Lines Matching defs:usid

2074 	const SID *usid;	/* owner of file/directory */
2103 usid = ntfs_acl_owner(securattr);
2105 usid, gsid, isdir);
2110 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2112 usid = (const SID*)&
2115 usid, gsid, isdir);
2120 if (!perm && ntfs_same_sid(usid, adminsid)) {
2125 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2176 const SID *usid; /* owner of file/directory */
2202 usid = ntfs_acl_owner(securattr);
2204 usid = (const SID*)&
2208 usid, gsid, isdir);
2225 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2228 && ntfs_same_sid(usid, adminsid)) {
2232 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2307 const SID *usid; /* owner of file/directory */
2335 usid = ntfs_acl_owner(securattr);
2337 usid, gsid, isdir);
2338 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2340 usid = (const SID*)&
2343 usid, gsid, isdir);
2344 if (!perm && ntfs_same_sid(usid, adminsid)) {
2349 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2443 const SID *usid; /* owner of file/directory */
2480 usid = ntfs_acl_owner(securattr);
2482 usid = (const SID*)&
2488 usid, gsid, isdir);
2500 usid, gsid, isdir);
2517 stbuf->st_uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2519 if (!perm && ntfs_same_sid(usid, adminsid)) {
2526 stbuf->st_uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2562 const SID *usid;
2591 usid = ntfs_acl_owner(securattr);
2593 usid, gsid, TRUE);
2594 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2596 usid = (const SID*)&
2599 usid, gsid, TRUE);
2600 if (pxdesc && ntfs_same_sid(usid, adminsid)) {
2603 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2657 const SID *usid;
2689 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2691 if (!usid || !gsid) {
2694 usid = gsid = adminsid;
2697 isdir, usid, gsid);
2735 const SID *usid;
2746 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2748 if (!usid || !gsid) {
2751 usid = gsid = adminsid;
2754 isdir, usid, gsid);
2800 const SID *usid;
2828 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2830 if (!usid || !gsid) {
2833 usid = gsid = adminsid;
2835 newattr = ntfs_build_descr(mode, isdir, usid, gsid);
2882 const SID *usid;
2929 * Do not use usid and gsid from former attributes,
2933 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2935 if (!usid || !gsid) {
2938 usid = gsid = adminsid;
2943 isdir, usid, gsid);
2946 isdir, usid, gsid);
2949 isdir, usid, gsid);
3011 const SID *usid;
3036 usid = ntfs_acl_owner(oldattr);
3042 usid = (const SID*)&oldattr
3046 usid);
3082 const SID *usid;
3120 usid = ntfs_acl_owner(oldattr);
3122 usid = (const SID*)&oldattr[le32_to_cpu(phead->owner)];
3125 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3128 oldattr, usid, gsid, isdir);
3257 const SID *usid;
3297 usid = ntfs_acl_owner(oldattr);
3299 usid = (const SID*)&oldattr[le32_to_cpu(phead->owner)];
3302 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3307 oldattr, usid, gsid, isdir);
3634 const SID *usid;
3673 usid = ntfs_acl_owner(oldattr);
3675 usid = (const SID*)
3680 usid, gsid, isdir);
3683 fileuid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3690 usid, gsid, isdir);
3692 fileuid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3708 /* replace by the new usid and gsid */
3762 const SID *usid;
3805 usid = ntfs_acl_owner(oldattr);
3807 usid = (const SID*)
3811 usid, gsid, isdir);
3815 fileuid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3830 /* replace by the new usid and gsid */
3871 const SID *usid;
3891 usid = ntfs_find_usid(scx->mapping[MAPUSERS], scx->uid, (SID*)&defusid);
3897 if (!usid) {
3898 usid = ntfs_acl_owner(parentattr);
3900 gsid = usid;
3904 if (!usid)
3905 usid = adminsid;
3918 usid = adminsid;
3921 usid = ntfs_acl_owner(parentattr);
3926 usid = (const SID*)&parentattr[offowner];
3944 usidsz = ntfs_sid_size(usid);
3967 aclsz = ntfs_inherit_acl(ppacl, pnacl, usid, gsid,
3984 aclsz = ntfs_inherit_acl(ppacl, pnacl, usid, gsid,
3996 memcpy(&newattr[pos],usid,usidsz);
4170 uid_t uid, gid_t gid, const SID *usid)
4179 sidsz = ntfs_sid_size(usid);
4182 memcpy(sid,usid,sidsz);
4253 const SID *usid;
4262 usid = (SID*)&securattr[le32_to_cpu(phead->owner)];
4263 if (ntfs_is_user_sid(usid))
4265 scx->uid, scx->gid, usid);
5228 const SID *usid;
5234 usid = ntfs_find_usid(scapi->security.mapping[MAPUSERS], uid, (SID*)&defusid);
5235 if (usid) {
5236 size = ntfs_sid_size(usid);
5237 memcpy(buf,usid,size);
5277 int ntfs_get_user(struct SECURITY_API *scapi, const SID *usid)
5282 if (scapi && (scapi->magic == MAGIC_API) && ntfs_valid_sid(usid)) {
5283 if (ntfs_same_sid(usid,adminsid))
5286 uid = ntfs_find_user(scapi->security.mapping[MAPUSERS], usid);