mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
passwd: Use LibCore syscall wrapper for setegid()
This commit is contained in:
parent
99eaeedf4e
commit
411c696057
Notes:
sideshowbarker
2024-07-17 22:41:49 +09:00
Author: https://github.com/awesomekling
Commit: 411c696057
1 changed files with 1 additions and 4 deletions
|
@ -21,10 +21,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (setegid(0) < 0) {
|
||||
perror("setegid");
|
||||
return 1;
|
||||
}
|
||||
TRY(Core::System::setegid(0));
|
||||
|
||||
TRY(Core::System::pledge("stdio wpath rpath cpath fattr tty"));
|
||||
TRY(Core::System::unveil("/etc", "rwc"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue