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

Add mio_unsupported_force_waker_pipe cfg flag #1685

Merged
merged 1 commit into from Jun 25, 2023

Conversation

Thomasdezeeuw
Copy link
Collaborator

This, unuspported, flag forces the Waker implementation to use the pipe implementation.

This is required because some SGX runtimes like gramine do not have a secure emulation of the eventfd syscall, compiling with this flag will produce a more secure SGX application.

See also:
https://gramine.readthedocs.io/en/stable/manifest-syntax.html#allowing-eventfd

@haraldh I used your commit, but expanded it to also disable kqueue. I added myself as co-author and removed your sign off (as you didn't sign off the changes).

Fixes #1682

@haraldh
Copy link
Contributor

haraldh commented Jun 24, 2023

typo in cfg

@haraldh
Copy link
Contributor

haraldh commented Jun 24, 2023

s/unspported/unsupported

@haraldh
Copy link
Contributor

haraldh commented Jun 25, 2023

one more typo in the commit message, but I don't care

@Thomasdezeeuw
Copy link
Collaborator Author

I'm getting way to lazy with all the autocomplete stuff...

This, unsupported, flag forces the Waker implementation to use the pipe
implementation.

This is required because some SGX runtimes like gramine do not have a
secure emulation of the `eventfd` syscall, compiling with this flag will
produce a more secure SGX application.

See also:
https://gramine.readthedocs.io/en/stable/manifest-syntax.html#allowing-eventfd

Co-authored-by: Thomas de Zeeuw <thomasdezeeuw@gmail.com>
@Thomasdezeeuw Thomasdezeeuw changed the title Add mio_unspported_force_waker_pipe cfg flag Add mio_unsupported_force_waker_pipe cfg flag Jun 25, 2023
@Thomasdezeeuw Thomasdezeeuw merged commit ec0776f into tokio-rs:master Jun 25, 2023
18 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the force-waker-pipe branch June 25, 2023 08:05
@haraldh
Copy link
Contributor

haraldh commented Jun 25, 2023

Thank you!

@Thomasdezeeuw Thomasdezeeuw mentioned this pull request Jul 6, 2023
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.

Need switch to not use eventfd on target_os = "linux"
3 participants