-
Notifications
You must be signed in to change notification settings - Fork 14
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 fails on GIDs > 2147483647 #72
Comments
This might be a long shot but do you have a reasonable way to reproduce this in a test? I'm not really sure how to construct this scenario in a lab-like environment in order for us to figure out what's going on, but maybe you know how groups work better than I do? |
You can reproduce it by creating a local group with a GID of
I've written a small NixOS test for this in https://github.com/max-privatevoid/nsncd-bug-72. I also made a simple patch that just replaces an The NixOS test runs two VMs, with an unpatched and a patched version of nsncd respectively, and performs the test with
I've also exposed the interactive mode of the test for convenience. This allows for direct interaction with the VMs for further inspection. $ nix run github:max-privatevoid/nsncd-bug-72#interactive
>>> start_all() |
I've submitted a PR and updated tests for this case, @max-privatevoid would you please take a quick look |
Originally reported in a fork.
User
max
is member of a group with GID 2709991565.Running
id max
,nsncd
(unstable-2022-11-14 from nixpkgs96f8f4a038a190f7511da79ef7e77bec5e4b811a
) returns:nscd
returns:Log for
nsncd
shows this error message:Users with GIDs <= 2147483647 get their groups listed correctly, so I'm guessing this is a signed vs. unsigned issue.
The text was updated successfully, but these errors were encountered: