]> Cypherpunks repositories - gostls13.git/commit
runtime: use Android O friendly faccessat syscall on linux/amd64
authorTobias Klauser <tklauser@distanz.ch>
Thu, 15 Mar 2018 09:21:57 +0000 (10:21 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 15 Mar 2018 10:07:19 +0000 (10:07 +0000)
commit5fcfe6b6ae53ed5e5cf43250c96cc40c2790fb3a
tree108e4744c3eeb5f7da043f9aa8228c50f0d46bb8
parent9ff7df003d770b1dffc984e1861fd009fe08d579
runtime: use Android O friendly faccessat syscall on linux/amd64

The Android O seccomp policy disallows the access syscall on amd64, see
https://android.googlesource.com/platform/bionic/+/android-4.2.2_r1.2/libc/SYSCALLS.TXT

Use the faccessat syscall with AT_FDCWD instead to achieve the same
behavior.

Updates #24403

Change-Id: I9db847c1c0f33987a3479b3f96e721fb9588cde2
Reviewed-on: https://go-review.googlesource.com/100877
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/sys_linux_amd64.s