Lines Matching defs:gsid
2075 const SID *gsid; /* group of file/directory */
2099 gsid = (const SID*)&
2101 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2105 usid, gsid, isdir);
2115 usid, gsid, isdir);
2177 const SID *gsid; /* group of file/directory */
2199 gsid = (const SID*)&
2208 usid, gsid, isdir);
2234 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2308 const SID *gsid; /* group of file/directory */
2331 gsid = (const SID*)&
2333 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2337 usid, gsid, isdir);
2343 usid, gsid, isdir);
2444 const SID *gsid; /* group of file/directory */
2477 gsid = (const SID*)&
2488 usid, gsid, isdir);
2500 usid, gsid, isdir);
2528 stbuf->st_gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2563 const SID *gsid;
2587 gsid = (const SID*)&
2589 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2593 usid, gsid, TRUE);
2599 usid, gsid, TRUE);
2658 const SID *gsid;
2690 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2691 if (!usid || !gsid) {
2694 usid = gsid = adminsid;
2697 isdir, usid, gsid);
2736 const SID *gsid;
2747 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2748 if (!usid || !gsid) {
2751 usid = gsid = adminsid;
2754 isdir, usid, gsid);
2801 const SID *gsid;
2829 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2830 if (!usid || !gsid) {
2833 usid = gsid = adminsid;
2835 newattr = ntfs_build_descr(mode, isdir, usid, gsid);
2883 const SID *gsid;
2929 * Do not use usid and gsid from former attributes,
2934 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2935 if (!usid || !gsid) {
2938 usid = gsid = adminsid;
2943 isdir, usid, gsid);
2946 isdir, usid, gsid);
2949 isdir, usid, gsid);
3083 const SID *gsid;
3124 gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
3126 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3128 oldattr, usid, gsid, isdir);
3258 const SID *gsid;
3301 gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
3303 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3307 oldattr, usid, gsid, isdir);
3635 const SID *gsid;
3670 gsid = (const SID*)
3680 usid, gsid, isdir);
3684 filegid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3690 usid, gsid, isdir);
3693 filegid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3708 /* replace by the new usid and gsid */
3763 const SID *gsid;
3802 gsid = (const SID*)
3811 usid, gsid, isdir);
3816 filegid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3830 /* replace by the new usid and gsid */
3872 const SID *gsid;
3892 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS], scx->gid, (SID*)&defgsid);
3895 if (!gsid)
3896 gsid = adminsid;
3899 if (!ntfs_is_user_sid(gsid))
3900 gsid = usid;
3906 if (!gsid)
3907 gsid = adminsid;
3930 gsid = adminsid;
3933 gsid = (const SID*)&parentattr[offgroup];
3945 gsidsz = ntfs_sid_size(gsid);
3967 aclsz = ntfs_inherit_acl(ppacl, pnacl, usid, gsid,
3984 aclsz = ntfs_inherit_acl(ppacl, pnacl, usid, gsid,
4002 memcpy(&newattr[pos],gsid,gsidsz);
5254 const SID *gsid;
5260 gsid = ntfs_find_gsid(scapi->security.mapping[MAPGROUPS], gid, (SID*)&defgsid);
5261 if (gsid) {
5262 size = ntfs_sid_size(gsid);
5263 memcpy(buf,gsid,size);
5303 int ntfs_get_group(struct SECURITY_API *scapi, const SID *gsid)
5308 if (scapi && (scapi->magic == MAGIC_API) && ntfs_valid_sid(gsid)) {
5309 if (ntfs_same_sid(gsid,adminsid))
5312 gid = ntfs_find_group(scapi->security.mapping[MAPGROUPS], gsid);