common/rc: Add _require_{chown,chmod}()
[xfstests-dev.git] / tests / generic / 593.out
1 QA output created by 593
2
3 # ==========================
4 # Test with policy version 1
5 # ==========================
6
7 # Adding key to filesystem
8 Added encryption key with descriptor 0000111122223333
9
10 # Creating encrypted file
11
12 # Removing key from filesystem
13 Removed encryption key with descriptor 0000111122223333
14 cat: SCRATCH_MNT/dir/file: No such file or directory
15
16 # Adding fscrypt-provisioning key
17
18 # Adding key to filesystem via fscrypt-provisioning key
19 Added encryption key with descriptor 0000111122223333
20
21 # Reading encrypted file
22 contents
23
24 # Cleaning up
25
26 # ==========================
27 # Test with policy version 2
28 # ==========================
29
30 # Adding key to filesystem
31 Added encryption key with identifier 69b2f6edeee720cce0577937eb8a6751
32
33 # Creating encrypted file
34
35 # Removing key from filesystem
36 Removed encryption key with identifier 69b2f6edeee720cce0577937eb8a6751
37 cat: SCRATCH_MNT/dir/file: No such file or directory
38
39 # Adding fscrypt-provisioning key
40
41 # Adding key to filesystem via fscrypt-provisioning key
42 Added encryption key with identifier 69b2f6edeee720cce0577937eb8a6751
43
44 # Reading encrypted file
45 contents
46
47 # Cleaning up
48
49 # ================
50 # Validation tests
51 # ================
52
53 # Adding an invalid fscrypt-provisioning key fails
54 # ... bad type
55 add_key: Invalid argument
56 # ... bad type
57 add_key: Invalid argument
58 # ... raw key too small
59 add_key: Invalid argument
60 # ... raw key too large
61 add_key: Invalid argument
62
63 # keyctl_read() doesn't work on fscrypt-provisioning keys
64 keyctl_read_alloc: Operation not supported
65
66 # Only keys with the correct fscrypt_provisioning_key_payload::type field can be added
67 # ... keyring key is v1, filesystem wants v2 key
68 Error adding encryption key: Key was rejected by service
69 # ... keyring key is v2, filesystem wants v1 key
70 Error adding encryption key: Key was rejected by service
71
72 # Only keys of type fscrypt-provisioning can be added
73 Error adding encryption key: Key was rejected by service