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)
Wed, Dec 18, 4:09 AM
Unknown Object (File)
Wed, Dec 18, 3:22 AM
Unknown Object (File)
Oct 28 2024, 10:24 PM
Unknown Object (File)
Oct 28 2024, 11:16 AM
Unknown Object (File)
Oct 27 2024, 9:42 PM
Unknown Object (File)
Oct 27 2024, 9:27 PM
Unknown Object (File)
Oct 20 2024, 1:02 AM
Unknown Object (File)
Oct 19 2024, 3:26 PM
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.