Bug 2172833
| Summary: | SELinux errors in journal during content-export | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Vladimír Sedmík <vsedmik> |
| Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED MIGRATED | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.13.0 | CC: | dalley, egolov, ehelms, rlavi |
| Target Milestone: | Unspecified | Keywords: | MigratedToJIRA, Triaged, WorkAround |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | pulpcore-selinux-2.0.0 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-06-06 16:08:52 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: | |||
|
Description
Vladimír Sedmík
2023-02-23 09:17:58 UTC
As this was reported a while back on a snap, is this still an issue being seen on 6.13 GA or 6.14 development builds? Yes, the issue has been just reproduced on 6.14.0 snap 10 and 6.13.3 snap 2: Aug 04 07:55:45 satellite.redhat.com /SetroubleshootPrivileged.py[11396]: failed to retrieve rpm info for /var/lib/selinux/targeted/active/modules/400/pulpcore Aug 04 07:55:47 satellite.redhat.com setroubleshoot[11368]: SELinux is preventing /usr/bin/python3.9 from write access on the directory labeled var_lib_t. For complete SELinux messages run: sealert -l 66186877-c5c6-455f-ad29-6c58aee48b31 @Pulp Team: /var/lib/pulp/export is something that Katello/Satellite defines as a default export path (https://github.com/theforeman/puppet-foreman_proxy_content/blob/96258dd5e8a36e9f94e6ba7d3a04bcbfbfd7a57c/manifests/init.pp#L238) However, we think now that Pulp2 is dead-dead-dead, https://github.com/pulp/pulpcore-selinux/blob/main/pulpcore.fc#L18-L24 can be simplified to something like /var/lib/pulp(/.*)? gen_context(system_u:object_r:pulpcore_var_lib_t,s0) /var/lib/pulp/pulpcore_static(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0) Ewoud opened a nice PR for that change: https://github.com/pulp/pulpcore-selinux/pull/69 This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |