Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-07-09 13:14:12 +0400
committerCorinna Vinschen <corinna@vinschen.de>2008-07-09 13:14:12 +0400
commit8f7208243ed7ac12a297eef5cdb2f3250c2185e7 (patch)
tree742210f14a005385c40012bab20b72e3bb3e11c1 /winsup
parent282737189879ff76895ff0e4f03ae05b62bbdbfe (diff)
* grp.cc (internal_getgroups): Also add integrity-enabled groups.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/grp.cc3
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)