| 1 |
|
| 2 |
# Encrypt with custom passphrase protector |
| 3 |
ext4 filesystem "MNT" has 1 protector and 1 policy. |
| 4 |
All users can create fscrypt metadata on this filesystem. |
| 5 |
|
| 6 |
PROTECTOR LINKED DESCRIPTION |
| 7 |
desc1 No custom protector "prot" |
| 8 |
|
| 9 |
POLICY UNLOCKED PROTECTORS |
| 10 |
desc2 Yes desc1 |
| 11 |
"MNT/dir" is encrypted with fscrypt. |
| 12 |
|
| 13 |
Policy: desc2 |
| 14 |
Options: padding:32 contents:AES_256_XTS filenames:AES_256_CTS policy_version:2 |
| 15 |
Unlocked: Yes |
| 16 |
|
| 17 |
Protected with 1 protector: |
| 18 |
PROTECTOR LINKED DESCRIPTION |
| 19 |
desc1 No custom protector "prot" |
| 20 |
|
| 21 |
# Encrypt with custom passphrase protector, interactively |
| 22 |
spawn fscrypt encrypt MNT/dir |
| 23 |
The following protector sources are available: |
| 24 |
1 - Your login passphrase (pam_passphrase) |
| 25 |
2 - A custom passphrase (custom_passphrase) |
| 26 |
3 - A raw 256-bit key (raw_key) |
| 27 |
Enter the source number for the new protector [2 - custom_passphrase]: 2 |
| 28 |
Enter a name for the new protector: prot |
| 29 |
Enter custom passphrase for protector "prot": |
| 30 |
Confirm passphrase: |
| 31 |
"MNT/dir" is now encrypted, unlocked, and ready for use. |
| 32 |
ext4 filesystem "MNT" has 1 protector and 1 policy. |
| 33 |
All users can create fscrypt metadata on this filesystem. |
| 34 |
|
| 35 |
PROTECTOR LINKED DESCRIPTION |
| 36 |
desc6 No custom protector "prot" |
| 37 |
|
| 38 |
POLICY UNLOCKED PROTECTORS |
| 39 |
desc7 Yes desc6 |
| 40 |
"MNT/dir" is encrypted with fscrypt. |
| 41 |
|
| 42 |
Policy: desc7 |
| 43 |
Options: padding:32 contents:AES_256_XTS filenames:AES_256_CTS policy_version:2 |
| 44 |
Unlocked: Yes |
| 45 |
|
| 46 |
Protected with 1 protector: |
| 47 |
PROTECTOR LINKED DESCRIPTION |
| 48 |
desc6 No custom protector "prot" |
| 49 |
|
| 50 |
# Try to use a custom protector without a name |
| 51 |
[ERROR] fscrypt encrypt: custom_passphrase protectors must be named |
| 52 |
|
| 53 |
Use --name=PROTECTOR_NAME to specify a protector name. |
| 54 |
ext4 filesystem "MNT" has 0 protectors and 0 policies. |
| 55 |
All users can create fscrypt metadata on this filesystem. |
| 56 |
|
| 57 |
[ERROR] fscrypt status: file or directory "MNT/dir" is not |
| 58 |
encrypted |