Page MenuHomeFreeBSD

Change linux faccessat syscall definition to match actual linux one.
ClosedPublic

Authored by dchagin on Nov 2 2014, 10:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 25, 9:30 AM
Unknown Object (File)
Tue, Oct 21, 11:38 PM
Unknown Object (File)
Tue, Oct 21, 7:25 PM
Unknown Object (File)
Fri, Oct 17, 3:54 AM
Unknown Object (File)
Sep 18 2025, 3:49 PM
Unknown Object (File)
Sep 11 2025, 3:33 PM
Unknown Object (File)
Sep 4 2025, 12:11 PM
Unknown Object (File)
Sep 3 2025, 5:41 AM
Subscribers

Details

Summary

The AT_EACCESS and AT_SYMLINK_NOFOLLOW flags are actually implemented
within the glibc wrapper function for faccessat(). If either of these
flags are specified, then the wrapper function employs fstatat() to
determine access permissions.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dchagin retitled this revision from to Change linux faccessat syscall definition to match actual linux one..
dchagin updated this object.
trasz added inline comments.
sys/compat/linux/linux_file.c
601 ↗(On Diff #2224)

Get rid of flag variable and pass AT_EACCESS directly, perhaps?

whoops, yes, faccessat() as access() here use the real uid/gid.

trasz added a reviewer: trasz.
This revision is now accepted and ready to land.Mar 27 2015, 9:43 AM
This revision was automatically updated to reflect the committed changes.