Skip to content

Conversation

@ctz
Copy link
Member

@ctz ctz commented Jan 23, 2025

The changes in #2 and #4 are pretty esoteric and inappropriate for most users. This PR compiles them out based on target_os.

Most importantly, nothing really guarantees that /data is a good place for look for anything on a common OS. In the security report we received yesterday against rustls-native-certs (which uses this crate), it was theorized that a rust binary running in a minimal docker image that operates on untrusted input mounted into /data would be tricked into trusting root certs included in the untrusted data. That is both surprising and very bad.

The haiku case is marginal because /boot is at least blessed in FHS. However I think this list of search paths should be minimal, since it is security-sensitive for much of the rust ecosystem.

@ctz
Copy link
Member Author

ctz commented Jan 23, 2025

Should also address #11 by-the-by.

@alexcrichton
Copy link
Collaborator

Thanks!

@alexcrichton alexcrichton merged commit 5b4b622 into rustls:master Jan 23, 2025
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.

3 participants