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 3d714fd7e1e5d1e499c0eeab97c2c0d4cc91161c..40d5cf1b7c5b9bb65f53133ce396403dd89f6aa1 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);