SystemServer: Drop GID before dropping UID

Otherwise the setgid() will fail :^)
This commit is contained in:
Andreas Kling 2019-09-15 21:18:48 +02:00
parent e60bbadbbc
commit 814346606f
Notes: sideshowbarker 2024-07-19 12:05:52 +09:00

View File

@ -93,8 +93,8 @@ int main(int, char**)
start_process("/bin/TTYServer", { "tty3" }, highest_prio, "/dev/tty3");
// Drop privileges.
setuid(100);
setgid(100);
setuid(100);
start_process("/bin/LookupServer", {}, lowest_prio);
start_process("/bin/WindowServer", {}, highest_prio);