<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti-client/src/util.rs, branch arti-v1.6.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.6.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.6.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-07-07T17:00:21Z</updated>
<entry>
<title>Throughout: Use *_report!() macros for reporting Errors.</title>
<updated>2023-07-07T17:00:21Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-07-07T13:54:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=25c6fe61e4cf230210dffdac2d3c281fcb31c5a9'/>
<id>urn:sha1:25c6fe61e4cf230210dffdac2d3c281fcb31c5a9</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Use ErrorReport for errors in error! in arti-client</title>
<updated>2023-01-30T18:52:32Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-01-30T18:25:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5c0a7e0127735cc6c10fed5e0594de60f522e3d2'/>
<id>urn:sha1:5c0a7e0127735cc6c10fed5e0594de60f522e3d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>enumerate platform with getresuid support</title>
<updated>2022-09-10T12:13:26Z</updated>
<author>
<name>trinity-1686a</name>
<email>trinity@deuxfleurs.fr</email>
</author>
<published>2022-09-10T12:05:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=edfd416ba46541bef18c20bb98bec07c4b453208'/>
<id>urn:sha1:edfd416ba46541bef18c20bb98bec07c4b453208</id>
<content type='text'>
</content>
</entry>
<entry>
<title>arti: running_as_setuid: fix MacOs build</title>
<updated>2022-08-26T10:44:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-08-26T10:44:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=72bc20c99bcc137c22be932ab584556098ff930e'/>
<id>urn:sha1:72bc20c99bcc137c22be932ab584556098ff930e</id>
<content type='text'>
libc::getuid and geteuid are marked unsafe, even though I think they
could be safe.  So the previous code didn't build.
</content>
</entry>
<entry>
<title>Fix setuid testing for MacOS</title>
<updated>2022-08-25T11:21:33Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-08-25T11:21:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=504bba2191bb57c58be3313cbf44350215207cad'/>
<id>urn:sha1:504bba2191bb57c58be3313cbf44350215207cad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>arti_client: Refuse to build a client if we are setuid.</title>
<updated>2022-08-24T19:23:24Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-24T13:17:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a8b3e147fe46e1f664db14c636750e4777b9721e'/>
<id>urn:sha1:a8b3e147fe46e1f664db14c636750e4777b9721e</id>
<content type='text'>
Arti is not designed to be a setuid-safe program.

Part of #523.
</content>
</entry>
<entry>
<title>arti-client: Unlock the state manager on failure to bootstrap</title>
<updated>2022-02-24T19:55:59Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2022-02-18T16:02:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c6fdd7c0037df821a7cfc475993322958c2f006a'/>
<id>urn:sha1:c6fdd7c0037df821a7cfc475993322958c2f006a</id>
<content type='text'>
`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
</content>
</entry>
</feed>
