-
Notifications
You must be signed in to change notification settings - Fork 673
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
initgroups erroneously not defined on macOS #2069
Comments
Okay, I dug through the history and docs, and saw that it said:
This is erroneous for this function. OpenDirectory is just for querying the directory. It cannot manage the groups of the process. This also breaks a lot of daemons that use it to drop privileges, that should otherwise work, for no good reason. |
That erroneous comment comes from this commit, which is a part of #733, I looked through that PR, didn't find anything related to this wrong comment. I think we should update it given that it is not correct. For these functions, if we accept their weird behaviors (see this question: As a reference: Looks like
without giving any reason or alternatives. |
This python doc has some information on this: https://docs.python.org/3/library/os.html |
Hello,
For some reason,
nix::unistd::initgroups
is explicitly not defined for macOS, withnoincorrect justification in the docs:nix/src/unistd.rs
Line 1782 in 75a26cd
This is strange, because the API definitely exists.
I'm unsure if it exists on iOS; I imagine it does, although in most cases it wouldn't be useful (except perhaps for jailbroken systems). But that's probably a separate issue.
The text was updated successfully, but these errors were encountered: