-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
glibc: allow load libnss tcb module #207547
Conversation
This looks too much a hack to me, I would definitely not accept this change, for now you may set |
At the moment I have not found another way :( |
Or, is there any specific reason that you cannot resort to nscd? |
This variant doesn't work. |
I mean setting |
Not working:
|
This is not how this works. You want to add a non-glibc-provided NSS module to the lookup path. To accomplish this, set The nixos tooling will make sure nscd/nsncd will be appropriately restarted to be able to find the specified NSS module. Check the following example:
Make sure nscd / nsncd is being used, and not disabled. |
Doesn't work either
After that, it is not possible to log in. |
Can you provide a more complete example, like a VM test?
Where is this message coming from? |
I did not write a test, I use the draft patch - #109457 (comment)
This warning occurs after a rebuild system:
|
This PR as-is can definitely not land. We can't randomly dlopen .so files from In any case, I don't think this NSS module is so different dispatching NSS lookups via ns(n)cd would not work, so this is the wrong approach. I suspect a misconfiguration elsewhere.
I did some digging, the message is coming from PAM. I'll comment in your issue #109457 with how this could be approached. |
That would break nix packages on foreign systems, as system libraries would be loaded instead of nix ones. |
@NickCao change to |
Sounds a little better, but I would still prefer the cleaner nscd approach, I could imagine these ad-hoc fixes causing a lot of headache later. |
I couldn't find another working variant :( |
I don't know what's going on with the specific combination of tcb and nscd, @flokli seems to be following that closely, hope he could provide you with more ideas. |
I checked draft variant - it works! |
Description of changes
Allow load libnss tcb module.
It is currently not possible to load third party libnss modules from a custom directory.
Before PR:
After PR:
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes