* grp.cc (getgrent): Don't return default gid entry when ntsec is on.

* syscalls.cc (setegid): Don't set primary group in process token.
This commit is contained in:
Corinna Vinschen 2002-01-21 20:51:30 +00:00
parent 1c6577408e
commit ac11ec8845
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-01-21 Corinna Vinschen <corinna@vinschen.de>
* grp.cc (getgrent): Don't return default gid entry when ntsec is on.
* syscalls.cc (setegid): Don't set primary group in process token.
2002-01-21 Christopher Faylor <cgf@redhat.com>
* speclib: Don't use /dev/null as DLL name. Just default to what's

View File

@ -223,7 +223,7 @@ getgrgid (gid_t gid)
return group_buf + i;
}
return default_grp;
return allow_ntsec ? NULL : default_grp;
}
extern "C"

View File

@ -2102,6 +2102,7 @@ setegid (gid_t gid)
return -1;
}
myself->gid = gid;
#if 0 // Setting the primary group in token here isn't foolproof enough.
if (allow_ntsec)
{
cygsid gsid;
@ -2123,6 +2124,7 @@ setegid (gid_t gid)
}
}
}
#endif
}
}
else