diff options
author | vodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-15 14:55:48 +0000 |
---|---|---|
committer | vodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-15 14:55:48 +0000 |
commit | 277dc7287f4f65e1505d75509c6d845116144a1c (patch) | |
tree | 9c63c07e24eae33e6d9dc75a9629632345c3b101 /networking | |
parent | a0152167964e90533e4b350d2790b3ef0ed5a074 (diff) | |
download | busybox-w32-277dc7287f4f65e1505d75509c6d845116144a1c.tar.gz busybox-w32-277dc7287f4f65e1505d75509c6d845116144a1c.tar.bz2 busybox-w32-277dc7287f4f65e1505d75509c6d845116144a1c.zip |
setgid and setuid have changes effective id too
git-svn-id: svn://busybox.net/trunk/busybox@13348 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking')
-rw-r--r-- | networking/fakeidentd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c index 3d714fd7e..40d5cf1b7 100644 --- a/networking/fakeidentd.c +++ b/networking/fakeidentd.c | |||
@@ -184,9 +184,7 @@ static int godaemon(void) | |||
184 | close(0); | 184 | close(0); |
185 | inetbind(); | 185 | inetbind(); |
186 | if (setgid(nogrp)) bb_error_msg_and_die("Could not setgid()"); | 186 | if (setgid(nogrp)) bb_error_msg_and_die("Could not setgid()"); |
187 | if (setegid(nogrp)) bb_error_msg_and_die("Could not setegid()"); | ||
188 | if (setuid(nobody)) bb_error_msg_and_die("Could not setuid()"); | 187 | if (setuid(nobody)) bb_error_msg_and_die("Could not setuid()"); |
189 | if (seteuid(nobody)) bb_error_msg_and_die("Could not seteuid()"); | ||
190 | close(1); | 188 | close(1); |
191 | close(2); | 189 | close(2); |
192 | 190 | ||