Bug 2362879
| Summary: | SELinux is preventing unbound-anchor from 'read' accesses on the file no-stub-resolv.conf. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sam Varshavchik <mrsam> | ||||||
| Component: | selinux-policy | Assignee: | Ondrej Mosnacek <omosnace> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 42 | CC: | dwalsh, lvrabec, mmalik, mrsam, omosnacek, omosnace, pkoncity, vmojzis, zpytela | ||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||
| Target Release: | --- | Flags: | zpytela:
mirror+
|
||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:30aea9aefa226859263ee7395908ffee20e1bc5212456257a3475d05b36726c3;VARIANT_ID=xfce; | ||||||||
| Fixed In Version: | selinux-policy-41.41-1.fc42 | Doc Type: | --- | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2025-05-28 01:56:24 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 2087734 [details]
File: description
Created attachment 2087735 [details]
File: os_info
FEDORA-2025-5e64167ac4 (selinux-policy-41.40-1.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-5e64167ac4 FEDORA-2025-5e64167ac4 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-5e64167ac4` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-5e64167ac4 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-5e64167ac4 (selinux-policy-41.40-1.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2025-cdfbb5ba42 (selinux-policy-41.41-1.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-cdfbb5ba42 FEDORA-2025-cdfbb5ba42 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-cdfbb5ba42` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-cdfbb5ba42 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-cdfbb5ba42 (selinux-policy-41.41-1.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: AVC occurs occasionally after waking the laptop from sleep. SELinux is preventing unbound-anchor from 'read' accesses on the file no-stub-resolv.conf. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that unbound-anchor should be allowed read access on the no-stub-resolv.conf file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'unbound-anchor' --raw | audit2allow -M my-unboundanchor # semodule -X 300 -i my-unboundanchor.pp Additional Information: Source Context system_u:system_r:named_t:s0 Target Context system_u:object_r:NetworkManager_var_run_t:s0 Target Objects no-stub-resolv.conf [ file ] Source unbound-anchor Source Path unbound-anchor Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-41.38-1.fc42.noarch Local Policy RPM selinux-policy-targeted-41.38-1.fc42.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.14.3-300.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Apr 20 16:08:39 UTC 2025 x86_64 Alert Count 2 First Seen 2025-04-28 07:29:36 EDT Last Seen 2025-04-29 07:42:06 EDT Local ID a07ff62e-21c3-4930-b016-e60994fc7462 Raw Audit Messages type=AVC msg=audit(1745926926.638:13790): avc: denied { read } for pid=95889 comm="unbound-anchor" name="no-stub-resolv.conf" dev="tmpfs" ino=14695 scontext=system_u:system_r:named_t:s0 tcontext=system_u:object_r:NetworkManager_var_run_t:s0 tclass=file permissive=0 Hash: unbound-anchor,named_t,NetworkManager_var_run_t,file,read Version-Release number of selected component: selinux-policy-targeted-41.38-1.fc42.noarch Additional info: reporter: libreport-2.17.15 reason: SELinux is preventing unbound-anchor from 'read' accesses on the file no-stub-resolv.conf. package: selinux-policy-targeted-41.38-1.fc42.noarch component: selinux-policy hashmarkername: setroubleshoot type: libreport kernel: 6.14.3-300.fc42.x86_64 comment: AVC occurs occasionally after waking the laptop from sleep. component: selinux-policy