-
Notifications
You must be signed in to change notification settings - Fork 708
Description
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 calls faccessat
on Linux would make sense, but maybe having faccessat
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.