mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
a6a1fc50a8
commit
0ccd39fbd2
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user