-
Notifications
You must be signed in to change notification settings - Fork 654
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
Implement eaccess/faccessat on platforms that support it #1373
Comments
It would definitely be worthwhile to add |
Correct. I'm not sure if |
Sounds like you need
Linux (both glibc and musl) has
|
I need to check access with EUID in my application and perhaps instead of implementing it privately, upstreaming to
nix
would be nicer. Not sure if there should be an unified interface or a thin layer only wrapping each function for its respective platform.I think having
eaccess
, which internally callsfaccessat
on Linux would make sense, but maybe havingfaccessat
exposed too would be useful.But why would you need eaccess? It's useless
I have an application that runs as root but want to do a bunch of sanity checks during start. These checks include checking if certain files are accessible as other user (because the application may fork & setuid & exec later and the given user should have access to those files) and that they are not writable by unauthorized users (
nobody
) - similar to what SSH does.The text was updated successfully, but these errors were encountered: