Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow svirt_t read sysfs files #2519

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Jan 14, 2025

Triggered by:
virt-install --import --disk /var/lib/libvirt/images/image.qcow2 -r 4000 --machine machinetype -n instancename --osinfo generic

The commit addresses the following AVC denial:
type=AVC msg=audit(1733476544.855:6456): avc: denied { read } for pid=369525 comm="qemu-system-x86" name="possible" dev="sysfs" ino=4677 scontext=system_u:system_r:svirt_t:s0:c199,c344 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=0

Resolves: rhbz#2330756

Triggered by:
virt-install --import --disk /var/lib/libvirt/images/image.qcow2 -r 4000 --machine machinetype -n instancename --osinfo generic

The commit addresses the following AVC denial:
type=AVC msg=audit(1733476544.855:6456): avc:  denied  { read } for  pid=369525 comm="qemu-system-x86" name="possible" dev="sysfs" ino=4677 scontext=system_u:system_r:svirt_t:s0:c199,c344 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=0

Resolves: rhbz#2330756
@qiankehan
Copy link
Contributor

Apply the patch to the selinux-policy-41.28-1 and tested on fedora rawhide(libvirt-10.10.0-1.fc42.x86_64 qemu-kvm-9.2.0-3.fc42.x86_64). PASS

@zpytela
Copy link
Contributor Author

zpytela commented Jan 15, 2025

Thanks for the feedback, merging then, rawhide build will be soon.

@zpytela zpytela merged commit 17bd265 into fedora-selinux:rawhide Jan 15, 2025
2 of 4 checks passed
@zpytela zpytela deleted the svirt-read-sysfs branch January 15, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants