| 1 |
ext4 filesystem "MNT" has 0 protectors and 0 policies. |
| 2 |
Only root can create fscrypt metadata on this filesystem. |
| 3 |
|
| 4 |
ext4 filesystem "MNT" has 0 protectors and 0 policies (only including ones owned by fscrypt-test-user or root). |
| 5 |
Only root can create fscrypt metadata on this filesystem. |
| 6 |
|
| 7 |
|
| 8 |
# Encrypt, lock, and unlock as root |
| 9 |
"MNT/dir" is now locked. |
| 10 |
|
| 11 |
# Encrypt as root with user's login protector |
| 12 |
|
| 13 |
IMPORTANT: See "MNT/dir/fscrypt_recovery_readme.txt" for |
| 14 |
important recovery instructions. It is *strongly recommended* to |
| 15 |
record the recovery passphrase in a secure location; otherwise you |
| 16 |
will lose access to this directory if you reinstall the operating |
| 17 |
system or move this filesystem to another system. |
| 18 |
|
| 19 |
Protector desc1 no longer protecting policy desc2. |
| 20 |
"MNT/dir" is now locked. |
| 21 |
Enter login passphrase for fscrypt-test-user: "MNT/dir" is now unlocked and ready for use. |
| 22 |
|
| 23 |
# Encrypt as user (should fail) |
| 24 |
[ERROR] fscrypt encrypt: user lacks permission to create fscrypt metadata on |
| 25 |
MNT |
| 26 |
|
| 27 |
For how to allow users to create fscrypt metadata on a filesystem, refer to |
| 28 |
https://github.com/google/fscrypt#setting-up-fscrypt-on-a-filesystem |
| 29 |
|
| 30 |
# Encrypt as user if they set up filesystem (should succeed) |