From 827e23940a65774d6ed52d5bd40a1326a6bd3dd7 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Mon, 7 Aug 2023 06:42:52 +0100 Subject: [PATCH] usermod: Don't set the EGID to 0 This is unnecessary, as usermod isn't a SUID binary. --- Userland/Utilities/usermod.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Utilities/usermod.cpp b/Userland/Utilities/usermod.cpp index d422c01cff..c80fb0e607 100644 --- a/Userland/Utilities/usermod.cpp +++ b/Userland/Utilities/usermod.cpp @@ -43,8 +43,6 @@ ErrorOr 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"));