1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:44:58 +00:00

usermod: Don't set the EGID to 0

This is unnecessary, as usermod isn't a SUID binary.
This commit is contained in:
Tim Ledbetter 2023-08-07 06:42:52 +01:00 committed by Jelle Raaijmakers
parent 55b6e07a0f
commit 827e23940a

View file

@ -43,8 +43,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return 1;
}
TRY(Core::System::setegid(0));
TRY(Core::System::pledge("stdio wpath rpath cpath fattr tty"));
TRY(Core::System::unveil("/etc", "rwc"));