]> Cypherpunks repositories - gostls13.git/commit
syscall: don't use faccessat2 on android
authorMichael Pratt <mpratt@google.com>
Tue, 20 Dec 2022 16:25:38 +0000 (11:25 -0500)
committerMichael Pratt <mpratt@google.com>
Wed, 21 Dec 2022 17:14:34 +0000 (17:14 +0000)
commit58f6022eee95f43b4e0dc640b012bb3f574898f1
treea25ca09d54a4e91826ae7bf325d4e47c73113eb6
parent78fc81070a853d08a71f70fa20b2093f5535e6c5
syscall: don't use faccessat2 on android

The Android seccomp policy does not allow faccessat2, so attempting to
use it results in a SIGSYS. Avoid it and go straight to the fallback.

Fixes #57393.

Change-Id: I8d4e12a6f46cea5642d3b5b5a02c682529882f29
Reviewed-on: https://go-review.googlesource.com/c/go/+/458495
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Changkun Ou <mail@changkun.de>
Run-TryBot: Michael Pratt <mpratt@google.com>
src/syscall/syscall_linux.go