-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not setgroups() on FreeBSD #257
Conversation
It doesn't reproduce on my system |
14.1. I run it from root as a daemon, it drops privileges with no issues, but a call to setgroups fails. |
the only call to setgroups is |
So I have conducted quite some testing and I definitely could not make it work with setgroups() on FreeBSD 14.1 even using the FreeBSD semantics and passing the primary gid as the first member of the groups array. |
may be you share your test code ? |
setgroups() call will fail with EPERM on FreeBSD. It renders --user and --uid options useless.