-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
CherryPickApprovedUsed during the release process for point releasesUsed during the release process for point releasesFrozenDueToAge
Milestone
Description
Android O has a seccomp filter.
Unfortunately it disallows use of open
and epoll_wait
, which are used by the Go runtime. Fortunately, it allows for openat
and epoll_pwait
, which map directly to the former ones by passing them the right arguments.
So far as I can see, these support open
and epoll_wait
:
- https://android.googlesource.com/platform/bionic/+/master/libc/seccomp/arm_app_policy.cpp
- https://android.googlesource.com/platform/bionic/+/master/libc/seccomp/mips_app_policy.cpp
- https://android.googlesource.com/platform/bionic/+/master/libc/seccomp/x86_app_policy.cpp
So far as I can see, these support openat
and epoll_pwait
:
- https://android.googlesource.com/platform/bionic/+/master/libc/seccomp/arm64_app_policy.cpp
- https://android.googlesource.com/platform/bionic/+/master/libc/seccomp/mips64_app_policy.cpp
- https://android.googlesource.com/platform/bionic/+/master/libc/seccomp/x86_64_app_policy.cpp
In other words, 64-bit architectures are affected. ARM64 was already fixed. This CL fixes the remaining two architectures: https://go-review.googlesource.com/c/go/+/92895
Metadata
Metadata
Assignees
Labels
CherryPickApprovedUsed during the release process for point releasesUsed during the release process for point releasesFrozenDueToAge