Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 135970
Collapse All | Expand All

(-)soundserver/artswrapper.c (+4 lines)
Lines 95-100 int main(int argc, char **argv) Link Here
95
#else
95
#else
96
		setreuid(-1, getuid());
96
		setreuid(-1, getuid());
97
#endif
97
#endif
98
		if (geteuid() != getuid()) {
99
			perror("setuid()");
100
			return 2;
101
		}
98
	}
102
	}
99
103
100
	if(argc == 0)
104
	if(argc == 0)
(-)soundserver/crashhandler.cc (-1 / +6 lines)
Lines 196-202 CrashHandler::defaultCrashHandler (int s Link Here
196
          argv[i++] = NULL;
196
          argv[i++] = NULL;
197
197
198
          setgid(getgid());
198
          setgid(getgid());
199
          setuid(getuid());
199
          if (getuid() != geteuid())
200
            setuid(getuid());
201
          if (getuid() != geteuid()) {
202
	    perror("setuid()");
203
            exit(255);
204
          }
200
205
201
          execvp(crashApp, argv);
206
          execvp(crashApp, argv);
202
207

Return to bug 135970