mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When we set our UID to `nobody', set an appropriate group also.
Submitted by: peter
This commit is contained in:
parent
b1f2952a35
commit
83c54719ed
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue