When we set our UID to `nobody', set an appropriate group also.
Submitted by: peter
This commit is contained in:
parent
9e58a4ded7
commit
383694ca34
@ -265,6 +265,7 @@ main(argc, argv)
|
|||||||
}
|
}
|
||||||
chdir( "/" );
|
chdir( "/" );
|
||||||
setuid(nobody->pw_uid);
|
setuid(nobody->pw_uid);
|
||||||
|
setgroups(1, &nobody->pw_gid);
|
||||||
}
|
}
|
||||||
|
|
||||||
from.sin_family = AF_INET;
|
from.sin_family = AF_INET;
|
||||||
|
Loading…
Reference in New Issue
Block a user