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

Avoid calling openat2 on Android in more places. #316

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

sunfishcode
Copy link
Member

Disable the openat2 code entirely on Android with a cfg, and adjust other code to avoid calling it.

This fixes some openat2 calls that remained after #312.

Disable the `openat2` code entirely on Android with a `cfg`, and adjust other
code to avoid calling it.

This fixes some `openat2` calls that remained after #312.
Copy link

@eddyb eddyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested by:

  1. removing my local workaround
    • outcome: app crashes with the syscall SECCOMP violation (as expected)
  2. switching to this PR using:
    [patch.crates-io]
    cap-primitives = { git = "https://github.com/bytecodealliance/cap-std", branch = "sunfishcode/android-openat2" }
    • outcome: app works again!

@sunfishcode
Copy link
Member Author

Thanks!

@sunfishcode sunfishcode merged commit ada5272 into main Apr 20, 2023
@sunfishcode sunfishcode deleted the sunfishcode/android-openat2 branch April 20, 2023 13:34
@sunfishcode
Copy link
Member Author

This is now released in cap-std et al 1.0.14.

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.

2 participants