Bug 1846081
| Summary: | both rhsm and rhsm-facts services run as unconfined_service_t | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Milos Malik <mmalik> |
| Component: | selinux-policy | Assignee: | Patrik Koncity <pkoncity> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.3 | CC: | jhnidek, lvrabec, mmalik, pkoncity, plautrba, ssekidde, zpytela |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.5 | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.14.3-76.el8 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 19:42:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1726199 | ||
|
Description
Milos Malik
2020-06-10 17:33:42 UTC
Are these services functionally different from the rhsmcertd service? I assume that we can use the rhsmcertd policy for them: # chcon -t rhsmcertd_exec_t /usr/libexec/rhsm-service # chcon -t rhsmcertd_exec_t /usr/libexec/rhsm-facts-service They do not trigger any SELinux denials and they seem to run without problems: # ps -efZ | grep rhsm[-] system_u:system_r:rhsmcertd_t:s0 root 5170 1 0 13:42 ? 00:00:00 /usr/libexec/platform-python /usr/libexec/rhsm-service system_u:system_r:rhsmcertd_t:s0 root 5212 1 0 13:42 ? 00:00:00 /usr/libexec/platform-python /usr/libexec/rhsm-facts-service # To backport:
commit 322b1d412ae6762333a9b4e22fedc09e50351e3b (HEAD -> rawhide, upstream/rawhide)
Author: Patrik Koncity <pkoncity>
Date: Thu May 27 09:56:37 2021 +0200
Confine rhsm service and rhsm-facts service as rhsmcertd_t
Rhsm service and rhsm-fact service run as unconfined_t. Use existing
rhsmcertd_t policy to confine rhsm service and rhsm-facts service as
rhsmcertd_t. Label binary files, which execute systemd daemon.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1846081
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4420 |