<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/fs-mistrust/src/testing.rs, branch arti-v1.4.2</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.2</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.4.2'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-03-26T15:27:09Z</updated>
<entry>
<title>fix compiling fs-misstrust on tvOS</title>
<updated>2025-03-26T15:27:09Z</updated>
<author>
<name>yaucp</name>
<email>thomas.yau@kape.com</email>
</author>
<published>2025-03-26T15:27:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0a4c1e155a926da2c568c92ef9338fc8eefed6c4'/>
<id>urn:sha1:0a4c1e155a926da2c568c92ef9338fc8eefed6c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use `expect()` instead of `unwrap()` in `mistrust_build()`.</title>
<updated>2022-08-29T14:40:00Z</updated>
<author>
<name>Alexander Færøy</name>
<email>ahf@torproject.org</email>
</author>
<published>2022-08-29T14:40:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8668bd7bc9323c369c24d56004c6b405b0745bb4'/>
<id>urn:sha1:8668bd7bc9323c369c24d56004c6b405b0745bb4</id>
<content type='text'>
See: tpo/core/arti#557.
</content>
</entry>
<entry>
<title>Refactor the construction of the `Mistrust` type in tests.</title>
<updated>2022-08-29T14:22:57Z</updated>
<author>
<name>Alexander Færøy</name>
<email>ahf@torproject.org</email>
</author>
<published>2022-08-29T14:22:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d208706280fde565824198da1aafb8f686c940cd'/>
<id>urn:sha1:d208706280fde565824198da1aafb8f686c940cd</id>
<content type='text'>
This patch refactors how we construct the `Mistrust` type in the tests
found in the fs-mistrust crate such that it is possible to construct an
instance of the `Mistrust` type using a set of operations available via
the `MistrustBuilder`'s methods.

We handle some of the portability issues found while testing this code
on Windows in the convenience function `mistrust_build()` instead of
having duplicated code in multiple test cases.

See: tpo/core/arti#557.
</content>
</entry>
<entry>
<title>Document in link_rel() why we do not support symlinks on Windows.</title>
<updated>2022-08-29T13:29:25Z</updated>
<author>
<name>Alexander Færøy</name>
<email>ahf@torproject.org</email>
</author>
<published>2022-08-29T13:29:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=514aaf41b8a402c3f05d8d0bb6da80a70e034134'/>
<id>urn:sha1:514aaf41b8a402c3f05d8d0bb6da80a70e034134</id>
<content type='text'>
This patch adds a comment to the `link_rel()` function in fs-mistrust to
explain why we ignore symlink creation on the Windows platform.

See: tpo/core/arti#557.
</content>
</entry>
<entry>
<title>Mark fs-mistrust's link_rel() and link_abs() as Unix-only.</title>
<updated>2022-08-26T19:32:12Z</updated>
<author>
<name>Alexander Færøy</name>
<email>ahf@torproject.org</email>
</author>
<published>2022-08-26T19:32:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fa1b77642f88c929d6935db2ab6c2936037cdd4f'/>
<id>urn:sha1:fa1b77642f88c929d6935db2ab6c2936037cdd4f</id>
<content type='text'>
Since we are not going to test symlink creation on Windows we remove
this code from the testing module.

See: tpo/core/arti#557.
</content>
</entry>
<entry>
<title>Second cut at a fs-mistrust crate.</title>
<updated>2022-05-03T14:03:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-04-13T15:32:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c4a5a49b55ef367afd45ca5855591e28e5f227f4'/>
<id>urn:sha1:c4a5a49b55ef367afd45ca5855591e28e5f227f4</id>
<content type='text'>
This crate is meant to solve #315 by giving a way to make sure that
a file or directory is only accessible by trusted users.  I've tried
to explain carefully (in comments and documentation) what this crate
is doing and why, under the assumption that it will someday be read
by another person like me who does _not_ live and breathe unix file
permissions.  The crate is still missing some key features, noted in
the TODO section.

It differs from the first version of the crate by taking a more
principled approach to directory checking: it emulates the path
lookup process (reading symlinks and all) one path change at a time,
thus ensuring that we check every directory which could enable
an untrusted user to get to our target file, _or_ which could
enable them to get to any symlink that would get them to the target
file.

The API is also slightly different: It separates the `Mistrust`
object (where you configure what you do or do not trust) from the
`Verifier` (where you set up a check that you want to perform on a
single object).  Verifiers are set up to be a bit ephemeral,
so that it is hard to accidentally declare that _every_ object
is meant to be readable when you only mean that _some_ objects
may be readable.
</content>
</entry>
</feed>
