mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
52f9ebbda9
Add a test which verifies that dentries in an encrypted directory are invalidated when an encryption key is added --- which should cause the plaintext filenames to be visible and accessible, replacing the encoded ciphertext filenames and any negative dentries for the plaintext names. This primarily tests for a bug which was fixed in the v4.5 kernel, plus a v4.6 fix for incorrect RCU usage in the earlier fix. Cc: linux-fscrypt@vger.kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
QA output created by 429
|
|
|
|
***** Without encryption key *****
|
|
--- Directory listing:
|
|
SCRATCH_MNT/edir/ENCRYPTED_NAME
|
|
SCRATCH_MNT/edir/ENCRYPTED_NAME
|
|
--- Contents of files using plaintext names:
|
|
cat: SCRATCH_MNT/edir/@@@: No such file or directory
|
|
cat: SCRATCH_MNT/edir/abcd: No such file or directory
|
|
--- Contents of files using ciphertext names:
|
|
cat: SCRATCH_MNT/edir/ENCRYPTED_NAME: Required key not available
|
|
cat: SCRATCH_MNT/edir/ENCRYPTED_NAME: Required key not available
|
|
|
|
***** With encryption key *****
|
|
--- Directory listing:
|
|
SCRATCH_MNT/edir/@@@
|
|
SCRATCH_MNT/edir/abcd
|
|
--- Contents of files using plaintext names:
|
|
contents_@@@
|
|
contents_abcd
|
|
--- Contents of files using ciphertext names:
|
|
cat: SCRATCH_MNT/edir/ENCRYPTED_NAME: No such file or directory
|
|
cat: SCRATCH_MNT/edir/ENCRYPTED_NAME: No such file or directory
|
|
|
|
***** Race conditions *****
|
|
t_encrypted_d_revalidate finished
|
|
|
|
***** After key revocation *****
|
|
--- Directory listing:
|
|
SCRATCH_MNT/edir/@@@
|
|
SCRATCH_MNT/edir/abcd
|
|
--- Contents of files using plaintext names:
|
|
contents_@@@
|
|
contents_abcd
|
|
--- Contents of files using ciphertext names:
|
|
cat: SCRATCH_MNT/edir/ENCRYPTED_NAME: No such file or directory
|
|
cat: SCRATCH_MNT/edir/ENCRYPTED_NAME: No such file or directory
|