Skip to content

Commit 2719032

Browse files
authored
Virtual_disk: fix avc denials caused by denied file access (#6559)
Some avc denails will occur but not affect the feature function in several virtual_disk.nbd cases. This file path is random, So update them to a selinux allowed one. Signed-off-by: meinaLi <[email protected]>
1 parent 2cd3ec5 commit 2719032

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libvirt/tests/cfg/virtual_disks/virtual_disks_nbd.cfg

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
deleteExisted = "no"
2727
virt_disk_check_partitions = "no"
2828
snapshot_name1 = "snap1"
29-
snapshot_name1_file = "/tmp/${snapshot_name1}-testvm.qcow2"
29+
snapshot_path = "/var/lib/libvirt/images"
30+
snapshot_name1_file = "${snapshot_path}/${snapshot_name1}-testvm.qcow2"
3031
snapshot_name2 = "snap2"
31-
snapshot_name2_mem_file = "/tmp/${snapshot_name2}-testvm-mem"
32-
snapshot_name2_disk_file = "/tmp/${snapshot_name2}-testvm.qcow2"
32+
snapshot_name2_mem_file = "${snapshot_path}/${snapshot_name2}-testvm-mem"
33+
snapshot_name2_disk_file = "${snapshot_path}/${snapshot_name2}-testvm.qcow2"
3334
- lifecycle_operate:
3435
variants:
3536
- enable_export:

0 commit comments

Comments
 (0)