diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/grp.cc | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7a5b1ca13..6b7e0eda9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 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> + * sec_auth.cc (verify_token): Disable code which returns false if the token contains additional groups not requested by setgroups. Explain why. diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index 35428fa97..37a0fcd73 100644 --- a/winsup/cygwin/grp.cc +++ b/winsup/cygwin/grp.cc @@ -382,7 +382,8 @@ internal_getgroups (int gidsetsize, __gid32_t *grouplist, cygpsid * srchsid) if (sid.getfromgr (gr)) for (DWORD pg = 0; pg < groups->GroupCount; ++pg) 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) { if (cnt < gidsetsize) |