setgid and setuid have changes effective id too
author"Vladimir N. Oleynik" <dzo@simtreas.ru>
Sun, 15 Jan 2006 14:55:48 +0000 (14:55 -0000)
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>
Sun, 15 Jan 2006 14:55:48 +0000 (14:55 -0000)
networking/fakeidentd.c

index 3d714fd..40d5cf1 100644 (file)
@@ -184,9 +184,7 @@ static int godaemon(void)
                close(0);
                inetbind();
                if (setgid(nogrp))   bb_error_msg_and_die("Could not setgid()");
-               if (setegid(nogrp))  bb_error_msg_and_die("Could not setegid()");
                if (setuid(nobody))  bb_error_msg_and_die("Could not setuid()");
-               if (seteuid(nobody)) bb_error_msg_and_die("Could not seteuid()");
                close(1);
                close(2);