Bug 2013194
| Summary: | SELinux denies container_t to manage files (at least read/write) in swift_var_cache_t context | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Cédric Jeanneret <cjeanner> | ||||
| Component: | openstack-selinux | Assignee: | Julie Pichon <jpichon> | ||||
| Status: | CLOSED ERRATA | QA Contact: | nlevinki <nlevinki> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 16.1 (Train) | CC: | lhh, lvrabec, mciecier | ||||
| Target Milestone: | zstream | Keywords: | Triaged | ||||
| Target Release: | 16.1 (Train on RHEL 8.2) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | openstack-selinux-0.8.24-1.20211103103446.26243bf.el8ost | Doc Type: | No Doc Update | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2022-03-24 11:01:44 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: | |||||||
| Attachments: |
|
||||||
|
Description
Cédric Jeanneret
2021-10-12 10:58:36 UTC
From what I can tell, this directory should be mounted as container_file_t in THT [1]. It's also mounted with :z for at least one container in this file though not the others (not sure if this may cause conflicts). I wonder if it's possible a restorecon was run? This could explain why the problem didn't come up before. [1] https://github.com/openstack/tripleo-heat-templates/blob/36d706/deployment/swift/swift-storage-container-puppet.yaml#L678 [2] https://github.com/openstack/tripleo-heat-templates/blob/36d706/deployment/swift/swift-storage-container-puppet.yaml#L524 Did the environment stop mid-update? This sounds like it could be similar to bug 1748885 - if the update stopped then the proper contexts wouldn't be reapplied. We may want to add these permissions for similar reasons to https://github.com/redhat-openstack/openstack-selinux/commit/d1e3cb. 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 (Red Hat OpenStack Platform 16.1.8 bug fix and enhancement advisory), 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-2022:0986 |