| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix name of clippy lint to unchecked_time_subtraction (2) | Ian Jackson | 2025-11-06 | 1 | -1/+1 |
| | | | | | Run maint/add_warning | ||||
| * | Switch Cargo.toml files to edition 2024. | Nick Mathewson | 2025-08-07 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again. | ||||
| * | *: use std::io::Error::other in many places | Nick Mathewson | 2025-05-15 | 1 | -4/+1 |
| | | | | | | | | The `IoError::other` function is an easier way to say `IoError::new(IoErrorKind::Other, ...)`. It's been around since 1.74, but clippy started warning about the more verbose version in 1.87. | ||||
| * | fs-mistrust: Move file access methods on CheckedDir to FileAccess. | Nick Mathewson | 2025-01-14 | 1 | -68/+5 |
| | | | | | | These are the methods which we'd like to give new options in #1746; we can move other methods later if we want to. | ||||
| * | fs-mistrust: Define a (stub) FileAccess type. | Nick Mathewson | 2025-01-14 | 1 | -0/+5 |
| | | | | | | We're going to move functionality and configuration functions here to implement #1746. | ||||
| * | fs-mistrust::CheckedDir: Refactor some common code. | Nick Mathewson | 2025-01-14 | 1 | -22/+32 |
| | | |||||
| * | fs-mistrust: Add test for (not) opening symlink from CheckedDir. | Nick Mathewson | 2025-01-14 | 1 | -1/+10 |
| | | |||||
| * | fs-mistrust: clarify doc for a private function. | Nick Mathewson | 2025-01-14 | 1 | -0/+2 |
| | | |||||
| * | fs-mistrust: Make CheckedDir::metadata() return an error if path is symlink. | Gabriela Moldovan | 2024-08-12 | 1 | -2/+45 |
| | | |||||
| * | fs-mistrust: Avoid opening the file in CheckedDir::metadata(). | Gabriela Moldovan | 2024-08-08 | 1 | -5/+19 |
| | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2291#note_3057232 | ||||
| * | fs-mistrust: Add a TODO about refactoring CheckedDir::metadata(). | Gabriela Moldovan | 2024-08-08 | 1 | -0/+1 |
| | | |||||
| * | fs-mistrust: Note that metadata() can return Error::NotFound. | Gabriela Moldovan | 2024-08-08 | 1 | -0/+2 |
| | | |||||
| * | fs-mistrust: Apply deferred cargo fmt. | Gabriela Moldovan | 2024-08-08 | 1 | -1/+4 |
| | | |||||
| * | fs-mistrust: Add a CheckedDir::metadata function. | Gabriela Moldovan | 2024-08-08 | 1 | -1/+28 |
| | | |||||
| * | fs-mistrust: Use Path::try_exists() instead of Path::exists(). | Gabriela Moldovan | 2024-07-30 | 1 | -2/+2 |
| | | |||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 1 | -0/+1 |
| | | |||||
| * | Fix typos in doc comments | Tobias Stoeckmann | 2024-03-06 | 1 | -1/+1 |
| | | |||||
| * | fs_mistrust: Provide CheckedDir::make_secure_dir | Ian Jackson | 2024-01-29 | 1 | -0/+18 |
| | | | | | | | state_dir wants this, to descend into subdirectories. I think the implementation could be improved - see the TODO. | ||||
| * | fs_mistrust: Expose CheckedDir::verifier | Ian Jackson | 2024-01-25 | 1 | -2/+2 |
| | | | | | | | | | | I'm not sure why this isn't public. It seems like an obviously reasonable transformation. If I as author of !1927 had been an external contributor, I could have worked around the lack of .make_secure_directory() if .verifier() had existed. So I think exposing it would be useful. | ||||
| * | fs-mistrust: Add read_directory and remove_file to CheckedDir. | Nick Mathewson | 2023-11-27 | 1 | -0/+142 |
| | | | | | Closes #1117. | ||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 1 | -0/+1 |
| | | |||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 1 | -0/+1 |
| | | |||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 1 | -0/+1 |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | ||||
| * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 1 | -0/+8 |
| | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | ||||
| * | Editorial improvements on fs-mistrust errors | Nick Mathewson | 2022-06-22 | 1 | -5/+7 |
| | | | | | | | These changes make sure that the errors conform to our preferred style, and include a description of what exactly we were doing when something went wrong. | ||||
| * | fs-mistrust: BadPermission(_, _) -> BadPermission(..) | Alex Xu (Hello71) | 2022-05-31 | 1 | -4/+4 |
| | | | | | Next commit adds another parameter to Error::BadPermission. | ||||
| * | fs-mistrust: make Mistrust have a corresponding Builder type. | Nick Mathewson | 2022-05-24 | 1 | -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 Mathewson | 2022-05-09 | 1 | -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 Mathewson | 2022-05-05 | 1 | -0/+1 |
| | | |||||
| * | fs-mistrust: write a lot about TOCTOU issues. | Nick Mathewson | 2022-05-03 | 1 | -0/+13 |
| | | |||||
| * | fs-mistrust: Rename SecureDir to CheckedDir. | Nick Mathewson | 2022-05-03 | 1 | -8/+8 |
| | | |||||
| * | Add a SecureDir API for checked access to directories | Nick Mathewson | 2022-05-03 | 1 | -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. | |||||
