From 88a0f32ea2f0f686e3a0c3c0839205e811cceda3 Mon Sep 17 00:00:00 2001 From: corinna Date: Wed, 9 Jul 2008 09:14:12 +0000 Subject: [PATCH] * grp.cc (internal_getgroups): Also add integrity-enabled groups. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/grp.cc | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7a5b1ca130..6b7e0eda9b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2008-07-09 Corinna Vinschen + * grp.cc (internal_getgroups): Also add integrity-enabled groups. + +2008-07-09 Corinna Vinschen + * 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 35428fa979..37a0fcd730 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) -- 2.11.0