Commit f5b768d
Conditionally allow virt guests to read certificates in user home directories
This appears to be needed for user session VMs with PKCS Smartcard
device added. It requires expanding the userdom_home_reader_certs_type
attribute and do some refactoring around userdom_read_home_certs(), so
that it can be enabled under a boolean.
Original AVC:
type=AVC msg=audit(1743337047.390:2649): avc: denied { read } for pid=17278 comm="qemu-system-x86" name="pkcs11.txt" dev="dm-0" ino=1557247 scontext=unconfined_u:unconfined_r:svirt_t:s0:c45,c54 tcontext=unconfined_u:object_r:home_cert_t:s0 tclass=file permissive=0
Resolves: rhbz#2356061
Signed-off-by: Ondrej Mosnacek <[email protected]>1 parent f6a71c2 commit f5b768d
File tree
3 files changed
+56
-16
lines changed- policy/modules
- contrib
- system
3 files changed
+56
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| 1260 | + | |
1260 | 1261 | | |
1261 | 1262 | | |
1262 | 1263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6016 | 6016 | | |
6017 | 6017 | | |
6018 | 6018 | | |
| 6019 | + | |
| 6020 | + | |
| 6021 | + | |
| 6022 | + | |
| 6023 | + | |
| 6024 | + | |
| 6025 | + | |
| 6026 | + | |
| 6027 | + | |
| 6028 | + | |
| 6029 | + | |
| 6030 | + | |
| 6031 | + | |
| 6032 | + | |
| 6033 | + | |
| 6034 | + | |
| 6035 | + | |
| 6036 | + | |
| 6037 | + | |
| 6038 | + | |
| 6039 | + | |
| 6040 | + | |
| 6041 | + | |
| 6042 | + | |
6019 | 6043 | | |
6020 | 6044 | | |
6021 | 6045 | | |
| |||
6027 | 6051 | | |
6028 | 6052 | | |
6029 | 6053 | | |
6030 | | - | |
6031 | | - | |
| 6054 | + | |
| 6055 | + | |
| 6056 | + | |
| 6057 | + | |
| 6058 | + | |
6032 | 6059 | | |
| 6060 | + | |
6033 | 6061 | | |
6034 | | - | |
| 6062 | + | |
| 6063 | + | |
| 6064 | + | |
| 6065 | + | |
| 6066 | + | |
| 6067 | + | |
| 6068 | + | |
| 6069 | + | |
| 6070 | + | |
| 6071 | + | |
| 6072 | + | |
| 6073 | + | |
| 6074 | + | |
| 6075 | + | |
| 6076 | + | |
| 6077 | + | |
| 6078 | + | |
| 6079 | + | |
| 6080 | + | |
| 6081 | + | |
| 6082 | + | |
| 6083 | + | |
| 6084 | + | |
| 6085 | + | |
| 6086 | + | |
6035 | 6087 | | |
6036 | 6088 | | |
6037 | 6089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 219 | | |
233 | 220 | | |
234 | 221 | | |
| |||
0 commit comments