* 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
3 changed files with 8 additions and 1 deletions
|
@ -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>
|
2002-01-21 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* speclib: Don't use /dev/null as DLL name. Just default to what's
|
* 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 group_buf + i;
|
||||||
}
|
}
|
||||||
|
|
||||||
return default_grp;
|
return allow_ntsec ? NULL : default_grp;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
|
|
|
@ -2102,6 +2102,7 @@ setegid (gid_t gid)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
myself->gid = gid;
|
myself->gid = gid;
|
||||||
|
#if 0 // Setting the primary group in token here isn't foolproof enough.
|
||||||
if (allow_ntsec)
|
if (allow_ntsec)
|
||||||
{
|
{
|
||||||
cygsid gsid;
|
cygsid gsid;
|
||||||
|
@ -2123,6 +2124,7 @@ setegid (gid_t gid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue