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 virtqemud read and write sgx_vepc devices #2502

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Jan 2, 2025

This is a follow-up commit to 96ac25a ("Allow virtqemud read sgx_vepc devices") as it turns out write permission is also needed.

The commit addresses the following AVC denial:
type=AVC msg=audit(1734456813.833:544): avc: denied { write } for pid=16954 comm="qemu-system-i38" name="sgx_vepc" dev="devtmpfs" ino=85 scontext=system_u:system_r:virtqemud_t:s0 tcontext=system_u:object_r:sgx_vepc_device_t:s0 tclass=chr_file permissive=1

Resolves: rhbz#2332876

This is a follow-up commit to 96ac25a ("Allow virtqemud read
sgx_vepc devices") as it turns out write permission is also needed.

The commit addresses the following AVC denial:
type=AVC msg=audit(1734456813.833:544): avc:  denied  { write } for  pid=16954 comm="qemu-system-i38" name="sgx_vepc" dev="devtmpfs" ino=85 scontext=system_u:system_r:virtqemud_t:s0 tcontext=system_u:object_r:sgx_vepc_device_t:s0 tclass=chr_file permissive=1

Resolves: rhbz#2332876
zpytela added a commit to zpytela/selinux-policy that referenced this pull request Jan 2, 2025
The commit addresses the following AVC denial:
type=PROCTITLE msg=audit(12/16/2024 03:49:11.325:19674) : proctitle=/usr/sbin/virtqemud --timeout 120
type=AVC msg=audit(12/16/2024 03:49:11.325:19674) : avc:  denied  { relabelfrom } for  pid=500526 comm=rpc-virtqemud scontext=system_u:system_r:virtqemud_t:s0 tcontext=system_u:system_r:virtqemud_t:s0 tclass=tun_socket permissive=1
type=AVC msg=audit(12/16/2024 03:49:11.325:19674) : avc:  denied  { relabelto } for  pid=500526 comm=rpc-virtqemud scontext=system_u:system_r:virtqemud_t:s0 tcontext=system_u:system_r:virtqemud_t:s0 tclass=tun_socket permissive=1
type=SYSCALL msg=audit(12/16/2024 03:49:11.325:19674) : arch=aarch64 syscall=ioctl success=yes exit=0 a0=0x1a a1=0x400454ca a2=0xffffa57dd800 a3=0x0 items=0 ppid=1 pid=500526 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=rpc-virtqemud exe=/usr/sbin/virtqemud subj=system_u:system_r:virtqemud_t:s0 key=(null)

Resolves: RHEL-fedora-selinux#2502
@zpytela zpytela merged commit d1778af into fedora-selinux:rawhide Jan 2, 2025
3 of 4 checks passed
@zpytela zpytela deleted the virtqemud-write-vepc branch January 2, 2025 16:48
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.

1 participant