mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
passwd: Use LibCore syscall wrapper for setegid()
This commit is contained in:
parent
99eaeedf4e
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