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)
Jan 26 2024, 8:44 AM
Unknown Object (File)
Jan 24 2024, 3:46 AM
Unknown Object (File)
Jan 18 2024, 1:12 PM
Unknown Object (File)
Jan 5 2024, 5:36 PM
Unknown Object (File)
Dec 19 2023, 11:43 PM
Unknown Object (File)
Sep 22 2023, 9:11 PM
Unknown Object (File)
Aug 26 2023, 11:17 PM
Unknown Object (File)
Jun 14 2023, 3:01 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.