<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fscrypt.git/util/users.go, branch refactor</title>
<subtitle>Go tool for managing Linux filesystem encryption
</subtitle>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/'/>
<entry>
<title>util: Add CheckIfRoot</title>
<updated>2017-10-19T10:54:50+00:00</updated>
<author>
<name>Joseph Richey</name>
<email>joerichey94@gmail.com</email>
</author>
<published>2017-10-19T10:37:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=3269bc539e52cdced8c03a628e4fdf22942ece4b'/>
<id>3269bc539e52cdced8c03a628e4fdf22942ece4b</id>
<content type='text'>
Replace IsUserRoot with CheckIfRoot. This allows all functions to use
the same error handling when a user is not root.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace IsUserRoot with CheckIfRoot. This allows all functions to use
the same error handling when a user is not root.
</pre>
</div>
</content>
</entry>
<entry>
<title>util: Add better user lookup functions</title>
<updated>2017-10-19T10:34:51+00:00</updated>
<author>
<name>Joseph Richey</name>
<email>joerichey94@gmail.com</email>
</author>
<published>2017-10-19T10:15:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=b7de8535f899f2b88d61f4f1264fe6a272196536'/>
<id>b7de8535f899f2b88d61f4f1264fe6a272196536</id>
<content type='text'>
When looking up users in fscrypt, we often want to proceed even if the
requested uid doesn't appear to be a valid user on the system. This
mainly occurs when a user is deleted, but they still have a login
protector on disk.

Thus, GetUser() with a bad uid creates a fake user with a pretty
placeholder name. The corresponding call sites of util.EffectiveUser are
changed (often simplifying logic). Various documentation is updated and
typos are fixed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When looking up users in fscrypt, we often want to proceed even if the
requested uid doesn't appear to be a valid user on the system. This
mainly occurs when a user is deleted, but they still have a login
protector on disk.

Thus, GetUser() with a bad uid creates a fake user with a pretty
placeholder name. The corresponding call sites of util.EffectiveUser are
changed (often simplifying logic). Various documentation is updated and
typos are fixed.
</pre>
</div>
</content>
</entry>
</feed>
