mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
setgid and setuid have changes effective id too
This commit is contained in:
parent
fb29b46201
commit
0f9ae1a0d7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user