summaryrefslogtreecommitdiff
path: root/crates/fs-mistrust/src/dir.rs
Commit message (Collapse)AuthorAgeFilesLines
* fs-mistrust: make Mistrust have a corresponding Builder type.Nick Mathewson2022-05-241-7/+13
| | | | | This is an approximately minimal revision to get Builder in place; subsequent commits will clean up the API.
* fs-mistrust: add various methods.Nick Mathewson2022-05-091-4/+128
| | | | | | | | | | | This includes: * a CachedDir::join method. * functions to read and write from provided filenames in a CachedDir. * a method to tell whether a fs-mistrust error is about bad file permissions, or failure to inspect file permissions or some other kind of IO problem.
* Derive Clone and Debug for CheckedDir.Nick Mathewson2022-05-051-0/+1
|
* fs-mistrust: write a lot about TOCTOU issues.Nick Mathewson2022-05-031-0/+13
|
* fs-mistrust: Rename SecureDir to CheckedDir.Nick Mathewson2022-05-031-8/+8
|
* Add a SecureDir API for checked access to directoriesNick Mathewson2022-05-031-0/+229
The only way to get a SecureDir is by having checked a directory. Once you have one, it encourages you to open and create files and directories with the right permissions, and checks them for you.