When we set our UID to `nobody', set an appropriate group also.
Submitted by: peter
This commit is contained in:
parent
b1f2952a35
commit
83c54719ed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85299
@ -265,6 +265,7 @@ main(argc, argv)
|
||||
}
|
||||
chdir( "/" );
|
||||
setuid(nobody->pw_uid);
|
||||
setgroups(1, &nobody->pw_gid);
|
||||
}
|
||||
|
||||
from.sin_family = AF_INET;
|
||||
|
Loading…
Reference in New Issue
Block a user