-
Notifications
You must be signed in to change notification settings - Fork 200
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
missing pwd.h (Unix password database operations) #47
Comments
Anyhow, in terms of compiling C projects to WASI, one way of dealing with this sort of issues is to either completely turn off any such functionality in the lib (e.g., adding custom Let me know if this makes sense! |
The functions in What are our options here?
-- The second option would be easy to do, but I'm not convinced that, for example, a UNIX group ID or the path to the user's shell make sense for code that runs on a web page If a desktop application specifically needs this, it can use a dedicated WASI extension that returns the real values. But with wasi-core being designed to be the lowest common denominator, I think not defining these functions is acceptable. That's just my $2. I'd be happy to implement other options if other people think something else would be the right thing to do. |
Could the PWD concept not be built on top of wasi in user space? My understanding is that we are doing this for |
But what would it even do? How would a desktop Linux app use e.g. LDAP via pam_ldap? User authentication can be part of a wasi extension, or even be a completely distinct project. But not only |
Oops, I completely misread this a bug about |
Updated the title to avoid confusion. |
I took a first try at compiling libgit2 with this, but sysdir.c is looking for
pwd.h
:Is
pwd.h
something that may be provided in the future? Or is this a case where I would need to add another set of defines and implement it for wasi? Sorry, a bit confused. This is all new.The text was updated successfully, but these errors were encountered: