Bug 365703: turn off logging and tracing if the effective group ID is

different from the real group ID.  The patch is suggested by Mike Hommey
<mh+mozilla@glandium.org>.  r=nelsonb,wtc.
Modified files: prlog.c prtrace.c
This commit is contained in:
wtchang%redhat.com 2007-01-05 22:26:27 +00:00
parent a6a1fc50a8
commit 0ccd39fbd2
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ void _PR_InitLog(void)
PR_SetLogBuffering(isSync ? bufSize : 0);
#ifdef XP_UNIX
if (getuid() != geteuid()) {
if (getuid() != geteuid() || getgid() != getegid()) {
return;
}
#endif /* XP_UNIX */

View File

@ -690,7 +690,7 @@ static PRFileDesc * InitializeRecording( void )
logState = LogReset;
#ifdef XP_UNIX
if (getuid() != geteuid()) {
if (getuid() != geteuid() || getgid() != getegid()) {
return NULL;
}
#endif /* XP_UNIX */