generic: test encrypted file access

Test accessing encrypted files and directories, both with and
without the encryption key.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Eric Biggers
2016-12-15 12:26:23 -08:00
committed by Eryu Guan
parent 88d1c426f4
commit 758175fad3
3 changed files with 158 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
QA output created by 397
stat: cannot stat 'SCRATCH_MNT/edir/empty': No such file or directory
stat: cannot stat 'SCRATCH_MNT/edir/symlink': No such file or directory
8
1
Required key not available
SCRATCH_MNT/edir/newfile: Required key not available
SCRATCH_MNT/edir/0123456789abcdef: Required key not available
mkdir: cannot create directory 'SCRATCH_MNT/edir/newdir': Required key not available
mkdir: cannot create directory 'SCRATCH_MNT/edir/0123456789abcdef': Required key not available
ln: failed to create symbolic link 'SCRATCH_MNT/edir/newlink': Required key not available
ln: failed to create symbolic link 'SCRATCH_MNT/edir/0123456789abcdef': Required key not available
stat: cannot stat 'SCRATCH_MNT/edir': No such file or directory