mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
SystemServer: Drop GID before dropping UID
Otherwise the setgid() will fail :^)
This commit is contained in:
parent
e60bbadbbc
commit
814346606f
Notes:
sideshowbarker
2024-07-19 12:05:52 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/814346606fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user