* 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:
parent
1c6577408e
commit
ac11ec8845
|
@ -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
|
||||
|
|
|
@ -223,7 +223,7 @@ getgrgid (gid_t gid)
|
|||
return group_buf + i;
|
||||
}
|
||||
|
||||
return default_grp;
|
||||
return allow_ntsec ? NULL : default_grp;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue