Bug 2139199
| Summary: | SELinux is preventing dnsdomainname from 'search' accesses on the directory net. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ignacio Conde <ignaciomconde> |
| Component: | smartmontools | Assignee: | Michal Hlavinka <mhlavink> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | mhlavink, musmant11, recjohnson, redhat.anv0a, tsmetana |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:6a8cc76373456abcf4eafcc15589ea93140e710b060a3c146a52e8f0e8233b4b;VARIANT_ID=kde; | ||
| Fixed In Version: | martmontools-7.3-7 smartmontools-7.3-9.fc38 smartmontools-7.4-1.fc37 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-30 01:38:58 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: | |||
Similar problem has been detected: Updated Fedora from 36 to 37 via dnf. Rebooted. Logged in. hashmarkername: setroubleshoot kernel: 6.0.8-300.fc37.x86_64 package: selinux-policy-targeted-37.14-1.fc37.noarch reason: SELinux is preventing dnsdomainname from 'search' accesses on the directory /var/lib/snapd/snap/gnome-42-2204/29/usr/share/mime/application/gnunet-directory.xml. type: libreport Similar problem has been detected: Booted Logged in hashmarkername: setroubleshoot kernel: 6.0.11-300.fc37.x86_64 package: selinux-policy-targeted-37.15-1.fc37.noarch reason: SELinux is preventing dnsdomainname from 'search' accesses on the directory net. type: libreport *** Bug 2152700 has been marked as a duplicate of this bug. *** *** Bug 2152983 has been marked as a duplicate of this bug. *** *** Bug 2189938 has been marked as a duplicate of this bug. *** smartmontools got significant selinux change. Previously, notification script has been run with same selinux context as smartd itself. Now it has its own selinux context, so they are more independent of each other. New selinux context should work with both distribution notify file smartdnotify and upstream's smartd_warn.sh script. *** Bug 2221346 has been marked as a duplicate of this bug. *** FEDORA-2023-b0cd579153 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-b0cd579153 FEDORA-2023-02044826b2 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-02044826b2 FEDORA-2023-b0cd579153 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-b0cd579153` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-b0cd579153 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-02044826b2 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-02044826b2` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-02044826b2 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-b0cd579153 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-027b050610 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-027b050610` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-027b050610 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-027b050610 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: SELinux is preventing dnsdomainname from 'search' accesses on the directory net. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that dnsdomainname should be allowed search access on the net directory 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 'dnsdomainname' --raw | audit2allow -M my-dnsdomainname # semodule -X 300 -i my-dnsdomainname.pp Additional Information: Source Context system_u:system_r:fsdaemon_t:s0 Target Context system_u:object_r:sysctl_net_t:s0 Target Objects net [ dir ] Source dnsdomainname Source Path dnsdomainname Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-37.12-2.fc37.noarch Local Policy RPM smartmontools-selinux-7.3-3.fc37.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.19.16-301.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Oct 21 15:55:37 UTC 2022 x86_64 x86_64 Alert Count 6 First Seen 2022-11-01 09:34:27 -03 Last Seen 2022-11-01 16:21:43 -03 Local ID 42bf0b65-505d-435a-86cb-ad1b34a72af3 Raw Audit Messages type=AVC msg=audit(1667330503.271:213): avc: denied { search } for pid=2109 comm="dnsdomainname" name="net" dev="proc" ino=20964 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0 Hash: dnsdomainname,fsdaemon_t,sysctl_net_t,dir,search Version-Release number of selected component: selinux-policy-targeted-37.12-2.fc37.noarch Additional info: component: smartmontools reporter: libreport-2.17.4 hashmarkername: setroubleshoot kernel: 5.19.16-301.fc37.x86_64 type: libreport