Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
rhc is a commandline tool which uses the D-Bus API to connect to the rhsm service. When a system is being registered or unregistered, virt-who must be notified about that. For that, rhsmcertd needs to read /run/virt-who.pid, and if the service is running, it sends to virt-who the SIGHUP signal so that virt-who is restarted.
The commit addresses the following AVC denial:
type=PROCTITLE msg=audit(01/30/2025 14:27:30.381:626) : proctitle=/usr/bin/python3 /usr/libexec/rhsm-service type=OBJ_PID msg=audit(01/30/2025 14:27:30.381:626) : opid=5103 oauid=unset ouid=root oses=-1 obj=system_u:system_r:virtd_t:s0-s0:c0.c1023 ocomm=virt-who type=SYSCALL msg=audit(01/30/2025 14:27:30.381:626) : arch=x86_64 syscall=kill success=yes exit=0 a0=0x13ef a1=SIGHUP a2=0x0 a3=0x7fffee5aa080 items=0 ppid=1 pid=5282 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=rhsm-service exe=/usr/bin/python3.12 subj=system_u:system_r:rhsmcertd_t:s0 key=(null) type=AVC msg=audit(01/30/2025 14:27:30.381:626) : avc: denied { signal } for pid=5282 comm=rhsm-service scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tclass=process permissive=1
Resolves: RHEL-77114