Bug 1833729
| Summary: | SELinux is preventing loginctl from search, read, open access on the file /sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ryan <stealthcipher> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 32 | CC: | dwalsh, grepl.miroslav, lvrabec, plautrba, vmojzis, zpytela |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-25 13:50:27 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: | 1812955 | ||
| Bug Blocks: | |||
note the comment: #!!!! This avc is allowed in the current policy is only there becaue I had to manually create each item to get to the next alert. This bug has been resolved in selinux-policy-3.14.5-39. |
Description of problem: noted when the power button was pressed i got a bunch of selinux alerts Version-Release number of selected component (if applicable): 3.14.5-38.fc32 How reproducible: every boot (unless you create the policy I will outline below) Steps to Reproduce: 1. Press the power button while logged in 2. note selinux alerts Actual results: alerts for loginctl Expected results: no alerts Additional info: the below policy resolves this issue: module my-loginctl 1.0; require { type apmd_t; type efivarfs_t; class dir search; class file { open read }; } #============= apmd_t ============== #!!!! This avc is allowed in the current policy allow apmd_t efivarfs_t:dir search; #!!!! This avc is allowed in the current policy allow apmd_t efivarfs_t:file read; allow apmd_t efivarfs_t:file open;