aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-client/src/util.rs
Commit message (Collapse)AuthorAgeFilesLines
* Throughout: Use *_report!() macros for reporting Errors.Nick Mathewson2023-07-071-3/+2
| | | | | | | | | | | | | | | I identified the cases to replace by searching for the string `.report()`. There are a few that I didn't change: * A couple of cases that used anyhow::Error, * One case that reported two Errors. * Two cases in `tor_hsclient::err` that just did `error!("Bug: {}")`. I have also not audited the cases in `tor-hsclient` where we're using `tor_error::Report` manually. Nonetheless, closes #949.
* Use ErrorReport for errors in error! in arti-clientIan Jackson2023-01-301-1/+2
|
* enumerate platform with getresuid supporttrinity-1686a2022-09-101-19/+19
|
* arti: running_as_setuid: fix MacOs buildIan Jackson2022-08-261-2/+2
| | | | | libc::getuid and geteuid are marked unsafe, even though I think they could be safe. So the previous code didn't build.
* Fix setuid testing for MacOSIan Jackson2022-08-251-16/+42
|
* arti_client: Refuse to build a client if we are setuid.Nick Mathewson2022-08-241-0/+36
| | | | | | Arti is not designed to be a setuid-safe program. Part of #523.
* arti-client: Unlock the state manager on failure to bootstrapeta2022-02-241-0/+29
`StateMgr` got a new `unlock()` method that does what it says on the tin. We now call it from `bootstrap()` using the new `util::StateMgrUnlockGuard`, which works in a manner similar to the `BoolResetter` from `tor_dirmgr`. (A decent small little task in future might be to unify these types in some sort of general arti utility crate?) closes arti#335