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
F149001220: D1078.id2224.diff
Sat, Mar 21, 4:30 PM
Unknown Object (File)
Thu, Mar 19, 3:19 AM
Unknown Object (File)
Wed, Mar 18, 4:21 AM
Unknown Object (File)
Sun, Mar 15, 3:19 PM
Unknown Object (File)
Wed, Mar 11, 1:08 PM
Unknown Object (File)
Sat, Mar 7, 4:49 AM
Unknown Object (File)
Sun, Mar 1, 6:45 PM
Unknown Object (File)
Sun, Mar 1, 6:33 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.