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 cooperative UCred impl for espidf and other process-less OSes #5868

Merged
merged 1 commit into from Jul 19, 2023

Conversation

jasta
Copy link
Contributor

@jasta jasta commented Jul 14, 2023

Motivation

espidf fails to compile due to missing get_peer_cred APIs. Since there are no processes (it runs FreeRTOS), we can just
pretend everything runs as root.

Solution

Dummy implementation keeps existing code happy and isn't technically wrong since it would show all UNIX domain sockets as being owned by the same user.

This is the only tokio build error related to espidf at this time.
@Darksonn Darksonn added A-tokio Area: The main tokio crate M-net Module: tokio/net labels Jul 14, 2023
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thanks.

@Darksonn Darksonn merged commit 0254454 into tokio-rs:master Jul 19, 2023
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-net Module: tokio/net
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants