Skip to content
Snippets Groups Projects
Commit c8ffd8bc authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

vfs: add faccessat2 syscall


POSIX defines faccessat() as having a fourth "flags" argument, while the
linux syscall doesn't have it.  Glibc tries to emulate AT_EACCESS and
AT_SYMLINK_NOFOLLOW, but AT_EACCESS emulation is broken.

Add a new faccessat(2) syscall with the added flags argument and implement
both flags.

The value of AT_EACCESS is defined in glibc headers to be the same as
AT_REMOVEDIR.  Use this value for the kernel interface as well, together
with the explanatory comment.

Also add AT_EMPTY_PATH support, which is not documented by POSIX, but can
be useful and is trivial to implement.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 55923e4d
No related branches found
No related tags found
No related merge requests found
Showing
with 45 additions and 10 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment