Skip to content

Partially consolidate "TOCTOU" explanations #141837

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

Open
workingjubilee opened this issue May 31, 2025 · 1 comment · May be fixed by #141847
Open

Partially consolidate "TOCTOU" explanations #141837

workingjubilee opened this issue May 31, 2025 · 1 comment · May be fixed by #141847
Assignees
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-io Area: `std::io`, `std::fs`, `std::net` and `std::path` T-libs Relevant to the library team, which will review and decide on the PR/issue.

Comments

@workingjubilee
Copy link
Member

workingjubilee commented May 31, 2025

Location

std::fs

Summary

"TOCTOU" is used liberally in the std::fs docs. The explanation of the phrase itself, including the overall concept, should probably be centralized to the top of the module docs. That way individual functions and such could link back, so that each function can instead explain the nature of the specific TOCTOU hazard that it either mitigates or is exposed to.

@workingjubilee workingjubilee added A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-io Area: `std::io`, `std::fs`, `std::net` and `std::path` labels May 31, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 31, 2025
@workingjubilee workingjubilee added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label May 31, 2025
@xizheyin
Copy link
Contributor

xizheyin commented Jun 1, 2025

@rustbot claim

@Noratrieb Noratrieb removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools A-io Area: `std::io`, `std::fs`, `std::net` and `std::path` T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants