* grp.cc (internal_getgroups): Also add integrity-enabled groups.
This commit is contained in:
parent
2827371898
commit
8f7208243e
|
@ -1,3 +1,7 @@
|
||||||
|
2008-07-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* grp.cc (internal_getgroups): Also add integrity-enabled groups.
|
||||||
|
|
||||||
2008-07-09 Corinna Vinschen <corinna@vinschen.de>
|
2008-07-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* sec_auth.cc (verify_token): Disable code which returns false if
|
* sec_auth.cc (verify_token): Disable code which returns false if
|
||||||
|
|
|
@ -382,7 +382,8 @@ internal_getgroups (int gidsetsize, __gid32_t *grouplist, cygpsid * srchsid)
|
||||||
if (sid.getfromgr (gr))
|
if (sid.getfromgr (gr))
|
||||||
for (DWORD pg = 0; pg < groups->GroupCount; ++pg)
|
for (DWORD pg = 0; pg < groups->GroupCount; ++pg)
|
||||||
if (sid == groups->Groups[pg].Sid
|
if (sid == groups->Groups[pg].Sid
|
||||||
&& (groups->Groups[pg].Attributes & SE_GROUP_ENABLED)
|
&& (groups->Groups[pg].Attributes
|
||||||
|
& (SE_GROUP_ENABLED | SE_GROUP_INTEGRITY_ENABLED))
|
||||||
&& sid != well_known_world_sid)
|
&& sid != well_known_world_sid)
|
||||||
{
|
{
|
||||||
if (cnt < gidsetsize)
|
if (cnt < gidsetsize)
|
||||||
|
|
Loading…
Reference in New Issue