-
Bug
-
Resolution: Unresolved
-
Major
-
rhel-9.6
-
selinux-policy-38.1.49-1.el9
-
No
-
Critical
-
1
-
rhel-sst-security-selinux
-
ssg_security
-
17
-
2
-
QE ack
-
False
-
-
No
-
SELINUX 241127 - 241218
-
-
Pass
-
Automated
-
Release Note Not Required
-
-
All
-
None
What were you trying to do that didn't work?
As subject
What is the impact of this issue to you?
AVC denial msgs
Please provide the package NVR for which the bug is seen:
selinux-policy-38.1.48-1.el9.noarch
libvirt-10.9.0-1.el9.x86_64
qemu-kvm-9.1.0-5.el9.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
- Prepare virtlockd
For /etc/libvirt/qemu.conf, set it as
lock_manager = "lockd"
For /etc/libvirt/qemu-lockd.conf, set it as
auto_disk_leases = 1
require_lease_for_disks = 1
file_lockspace_dir = "/var/lib/libvirt/lockd/files"
Then restart virtqemud and virtlockd
- Start a domain
- Create the snapshot and revert the snapshot
> virsh snapshot-create-as RHEL s1 --memspec /var/lib/libvirt/images/RHEL_mem.s1
Domain snapshot s1 created
> virsh snapshot-revert RHEL s1
Domain snapshot s1 reverted
One AVC denial happens when reverting the snapshot:
type=AVC msg=audit(1732785595.568:8090): avc: denied { kill } for pid=323799 comm="virtlockd" capability=5 scontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023 tclass=capability permissive=0
Set SELinux to permissive then revert the snapshot. Get 2 AVC denials
type=AVC msg=audit(1732785728.355:8124): avc: denied { signal } for pid=323799 comm="virtlockd" scontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:svirt_t:s0:c698,c836 tclass=process permissive=1 type=AVC msg=audit(1732785728.355:8124): avc: denied { kill } for pid=323799 comm="virtlockd" capability=5 scontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023 tclass=capability permissive=1
Expected results
No AVC denials
Actual results
- links to
-
RHBA-2024:139849 selinux-policy bug fix and enhancement update