<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fscrypt.git/cmd, branch sshd-bug-workaround</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>cmd/fscrypt: read key from stdin</title>
<updated>2021-11-30T03:35:21+00:00</updated>
<author>
<name>Dimitry Ishenko</name>
<email>dimitry.ishenko@gmail.com</email>
</author>
<published>2021-11-30T01:25:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=38d6cee5930f8109e8ef72a47a8496c875c49280'/>
<id>38d6cee5930f8109e8ef72a47a8496c875c49280</id>
<content type='text'>
Fixes #123
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #123
</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust recovery passphrase generation</title>
<updated>2021-10-05T22:30:30+00:00</updated>
<author>
<name>Eric Biggers</name>
<email>ebiggers@google.com</email>
</author>
<published>2021-09-14T21:12:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=7fed63a84963cbd790e86a0e59ff14724bcf33c4'/>
<id>7fed63a84963cbd790e86a0e59ff14724bcf33c4</id>
<content type='text'>
As per the feedback at https://github.com/google/fscrypt/issues/115
where users didn't understand that the recovery passphrase is important,
restore the original behavior where recovery passphrase generation
happens automatically without a prompt.  This applies to the case where
'fscrypt encrypt' is using a login protector on a non-root filesystem.

However, leave the --no-recovery option so that the recovery passphrase
can still be disabled if the user really wants to.  Also, clarify the
information provided about the recovery passphrase.

Update https://github.com/google/fscrypt/issues/115
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As per the feedback at https://github.com/google/fscrypt/issues/115
where users didn't understand that the recovery passphrase is important,
restore the original behavior where recovery passphrase generation
happens automatically without a prompt.  This applies to the case where
'fscrypt encrypt' is using a login protector on a non-root filesystem.

However, leave the --no-recovery option so that the recovery passphrase
can still be disabled if the user really wants to.  Also, clarify the
information provided about the recovery passphrase.

Update https://github.com/google/fscrypt/issues/115
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd/fscrypt: recognize no-key names containing hyphen</title>
<updated>2021-09-14T22:41:35+00:00</updated>
<author>
<name>Eric Biggers</name>
<email>ebiggers@google.com</email>
</author>
<published>2021-09-14T21:37:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=92b1e9a8670ccd3916a7d24a06cab1e4c9815bc4'/>
<id>92b1e9a8670ccd3916a7d24a06cab1e4c9815bc4</id>
<content type='text'>
In Linux 5.15, the no-key name format is changing again; see
https://git.kernel.org/linus/ba47b515f5940603.  isPossibleNoKeyName()
sometimes doesn't recognize the new no-key names.  Update it accordingly
to recognize all possible no-key names.

Note: isPossibleNoKeyName() is only used as a heuristic to check whether
a v1-encrypted directory is incompletely locked or not.  Therefore, it's
not too important whether it works.  However, this change is needed for
cli-tests/t_v1_policy to pass.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Linux 5.15, the no-key name format is changing again; see
https://git.kernel.org/linus/ba47b515f5940603.  isPossibleNoKeyName()
sometimes doesn't recognize the new no-key names.  Update it accordingly
to recognize all possible no-key names.

Note: isPossibleNoKeyName() is only used as a heuristic to check whether
a v1-encrypted directory is incompletely locked or not.  Therefore, it's
not too important whether it works.  However, this change is needed for
cli-tests/t_v1_policy to pass.
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd/fscrypt: fix detection of GRUB installation</title>
<updated>2021-06-27T22:00:51+00:00</updated>
<author>
<name>Eric Biggers</name>
<email>ebiggers@google.com</email>
</author>
<published>2021-06-27T20:13:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=e248d2a99aff5bef7611ac0596b0aa2d1eda6629'/>
<id>e248d2a99aff5bef7611ac0596b0aa2d1eda6629</id>
<content type='text'>
Fix the GRUB detection logic to take into account that
MOUNTPOINT/boot/grub might not be on the same filesystem as MOUNTPOINT,
due to MOUNTPOINT/boot being another mountpoint.  The warning is only
appropriate when GRUB is installed on the same filesystem that
encryption is going to be enabled on.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the GRUB detection logic to take into account that
MOUNTPOINT/boot/grub might not be on the same filesystem as MOUNTPOINT,
due to MOUNTPOINT/boot being another mountpoint.  The warning is only
appropriate when GRUB is installed on the same filesystem that
encryption is going to be enabled on.
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd/fscrypt: fix word mismatch "protector" =&gt; "policy"</title>
<updated>2021-04-27T19:16:36+00:00</updated>
<author>
<name>Gibeom Gwon</name>
<email>gb.gwon@stackframe.dev</email>
</author>
<published>2021-04-27T10:49:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=79795229bba45f6f58b8e0496a9a9e098f1c22aa'/>
<id>79795229bba45f6f58b8e0496a9a9e098f1c22aa</id>
<content type='text'>
Fix word mismatch in usage and description of metadata create policy
command.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix word mismatch in usage and description of metadata create policy
command.
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd/fscrypt: use golang.org/x/term</title>
<updated>2021-04-22T19:27:31+00:00</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2021-04-22T11:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=db79840bc68f803c23477e7c093e3cff2a7633ba'/>
<id>db79840bc68f803c23477e7c093e3cff2a7633ba</id>
<content type='text'>
The golang.org/x/crypto/ssh/terminal package is deprecated and merely a
wrapper around golang.org/x/term. Thus, use the latter directly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The golang.org/x/crypto/ssh/terminal package is deprecated and merely a
wrapper around golang.org/x/term. Thus, use the latter directly.
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd/fscrypt: fix missing protector error format</title>
<updated>2021-01-19T18:18:02+00:00</updated>
<author>
<name>Alastair Hughes</name>
<email>hobbitalastair@gmail.com</email>
</author>
<published>2021-01-15T10:08:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=99ef2db47957ed986c945574e6133abab8d76d45'/>
<id>99ef2db47957ed986c945574e6133abab8d76d45</id>
<content type='text'>
Update #272
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update #272
</pre>
</div>
</content>
</entry>
<entry>
<title>bash-completion: add completion script</title>
<updated>2020-11-30T21:49:06+00:00</updated>
<author>
<name>Henry-Joseph Audéoud</name>
<email>henry-joseph.audeoud@univ-grenoble-alpes.fr</email>
</author>
<published>2020-10-30T10:41:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=b74cd30fd7b0ebf30ef570f7bfa78dfcd62d80d5'/>
<id>b74cd30fd7b0ebf30ef570f7bfa78dfcd62d80d5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd/fscrypt: fix race condition in getPassphraseKey()</title>
<updated>2020-11-08T04:46:57+00:00</updated>
<author>
<name>Eric Biggers</name>
<email>ebiggers@google.com</email>
</author>
<published>2020-11-08T04:30:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=7381e5937209178fa94694888d6a721ab0d5a124'/>
<id>7381e5937209178fa94694888d6a721ab0d5a124</id>
<content type='text'>
Set the terminal to raw mode *before* printing the prompt.
Otherwise the user (or the automated test) might enter the
passphrase before the terminal gets put into raw mode.

This is needed for some of the CLI tests to pass reliably in Travis CI.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Set the terminal to raw mode *before* printing the prompt.
Otherwise the user (or the automated test) might enter the
passphrase before the terminal gets put into raw mode.

This is needed for some of the CLI tests to pass reliably in Travis CI.
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd/fscrypt: fix isDirUnlockedHeuristic() on latest kernels</title>
<updated>2020-11-07T22:49:02+00:00</updated>
<author>
<name>Eric Biggers</name>
<email>ebiggers@google.com</email>
</author>
<published>2020-11-07T22:20:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.hodgden.net/cgit.cgi/fscrypt.git/commit/?id=b68d603854bb38f59e77963d61ca25d92b945589'/>
<id>b68d603854bb38f59e77963d61ca25d92b945589</id>
<content type='text'>
On an "incompletely locked" directory, isDirUnlockedHeuristic() is
supposed to return true, but on Linux v5.10-rc1 and later it returns
false since now creating a subdirectory fails rather than succeeds.
This change was intentional, so make isDirUnlockedHeuristic() apply a
second heuristic too: also return true if any filenames in the directory
don't appear to be valid no-key names.

This fixes cli-tests/t_v1_encrypt on Linux v5.10-rc1 and later.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On an "incompletely locked" directory, isDirUnlockedHeuristic() is
supposed to return true, but on Linux v5.10-rc1 and later it returns
false since now creating a subdirectory fails rather than succeeds.
This change was intentional, so make isDirUnlockedHeuristic() apply a
second heuristic too: also return true if any filenames in the directory
don't appear to be valid no-key names.

This fixes cli-tests/t_v1_encrypt on Linux v5.10-rc1 and later.
</pre>
</div>
</content>
</entry>
</feed>
