Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(main/zig): disable certain syscalls usage #17768

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

truboxl
Copy link
Contributor

@truboxl truboxl commented Sep 6, 2023

Fix #17739

seccomp blocks syscall access on 64bit, use faccessat if possible
aarch64 is unaffected as there is no syscall access to begin with
https://android.googlesource.com/platform/bionic/+/refs/heads/main/libc/SECCOMP_ALLOWLIST_APP.TXT
@truboxl truboxl mentioned this pull request Sep 6, 2023
@licy183
Copy link
Member

licy183 commented Sep 6, 2023

Also not working due to stat syscall...

image

@truboxl truboxl changed the title fix(main/zig): disable syscall access on x86_64 fix(main/zig): disable certain syscalls usage Sep 7, 2023
@licy183
Copy link
Member

licy183 commented Sep 7, 2023

Tests fine on Ubuntu 22.04.

image

@truboxl truboxl merged commit 7862988 into termux:master Sep 7, 2023
@truboxl truboxl deleted the zig-no-syscall-access branch September 7, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Running zig cc on Waydroid (x86_64) prints "Bad system call (core dumped)"
2 participants