]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] syscall: use Android O friendly fstatat syscall to implement...
authorTobias Klauser <tklauser@distanz.ch>
Thu, 15 Mar 2018 09:45:51 +0000 (10:45 +0100)
committerAndrew Bonventre <andybons@golang.org>
Thu, 29 Mar 2018 06:08:23 +0000 (06:08 +0000)
commit67b695627005fbd66183e00036450b5c639427a8
tree65d39d6a9192b920ed0162e0420e142e5c60415d
parent8d90bb4b199261000c0011348eeac5e4ad642f1d
[release-branch.go1.10] syscall: use Android O friendly fstatat syscall to implement Stat on linux/amd64

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

Use the fstatat syscall with AT_FDCWD and zero flags instead to achieve
the same behavior.

Fixes #24403

Change-Id: I36fc9ec9bc938cd8e9de30f66c0eb9d2e24debf6
Reviewed-on: https://go-review.googlesource.com/100878
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/102976
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/syscall_linux_amd64.go
src/syscall/zsyscall_linux_amd64.go