When called with a non-zero flags parameter, the Faccessat function could incorrectly report that a file is accessible.
Thanks to Joël Gähwiler (@256dpi) for reporting this.
This is CVE-2022-29526 and https://go.dev/issue/52313.