blob: 4f360d57b2b5fbb3a0d6b1cb16079d15fb083588 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
QA output created by 577
# Generating certificates and private keys
# Clearing fs-verity keyring
# Loading first certificate into fs-verity keyring
# Enabling fs.verity.require_signatures
# Generating file and signing it for fs-verity
Signed file 'SCRATCH_MNT/file' (sha256:<digest>)
Signed file 'SCRATCH_MNT/file' (sha256:<digest>)
# Signing a different file for fs-verity
Signed file 'SCRATCH_MNT/otherfile' (sha256:<digest>)
# Enabling verity with valid signature (should succeed)
# Enabling verity without signature (should fail)
ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Operation not permitted
# Opening verity file without signature (should fail)
md5sum: SCRATCH_MNT/file.fsv: Operation not permitted
# Enabling verity with untrusted signature (should fail)
ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Required key not available
# Enabling verity with wrong file's signature (should fail)
ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Key was rejected by service
# Enabling verity with malformed signature (should fail)
ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Bad message
# Testing salt
Signed file 'SCRATCH_MNT/file' (sha256:<digest>)
# Testing non-default hash algorithm
# Testing empty file
Signed file 'SCRATCH_MNT/file.fsv' (sha256:<digest>)
|