]> Cypherpunks repositories - gostls13.git/commit
os: ignore SIGSYS in checkPidfd
authorcions <gh.cions@gmail.com>
Tue, 24 Sep 2024 01:27:40 +0000 (01:27 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 26 Sep 2024 13:17:09 +0000 (13:17 +0000)
commita3a05ed04cb53c53bdacded2d16f0f3e5facdbb0
tree71444f68912290bd3a092dd011bb80db04d23b8e
parent607975cfa15768e3587facfbde18ef9f18c46170
os: ignore SIGSYS in checkPidfd

In Android version 11 and earlier, pidfd-related system calls
are not allowed by the seccomp policy, which causes crashes due
to SIGSYS signals.

Fixes #69065

Change-Id: Ib29631639a5cf221ac11b4d82390cb79436b8657
GitHub-Last-Rev: aad6b3b32c81795f86bc4a9e81aad94899daf520
GitHub-Pull-Request: golang/go#69543
Reviewed-on: https://go-review.googlesource.com/c/go/+/614277
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/pidfd_linux.go
src/runtime/os_linux.go
src/runtime/os_unix_nonlinux.go
src/runtime/signal_unix.go