]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] runtime: use Android O friendly faccessat syscall on linux...
authorTobias Klauser <tklauser@distanz.ch>
Thu, 15 Mar 2018 09:21:57 +0000 (10:21 +0100)
committerAndrew Bonventre <andybons@golang.org>
Thu, 29 Mar 2018 06:08:18 +0000 (06:08 +0000)
commit8d90bb4b199261000c0011348eeac5e4ad642f1d
treea30e1174ab863c6d729c868d171d73b3be8a64cb
parent24879947d5ad7fda983a098f651130b6bfaa750f
[release-branch.go1.10] 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>
Reviewed-on: https://go-review.googlesource.com/102995
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/sys_linux_amd64.s