Bug 1714800
| Summary: | SELinux is preventing pmdalinux from 'read' accesses on the file mdadm. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Peter Trenholme <PTrenholme> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 30 | CC: | dwalsh, lberk, lvrabec, mgrepl, plautrba, sct, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:af0fb3c175c2ec8de79112b56d15632df2a21016726c0a9244cc9cdb0ff84856; | ||
| Fixed In Version: | selinux-policy-3.14.3-39.fc30 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-20 02:54:57 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: | |||
Lukas, pcp_pmcd_t is trying execute/read mdadm binary, is this OK ? Thanks, Lukas. Hey Lukas, Yes, this is expected, we use the output from mdadm for some of our disk metrics; % pminfo -fTt disk.md.status disk.md.status [per-multi-device "mdadm --test --detail <device>" return code] Help: per-multi-device "mdadm --test --detail <device>" return code No value(s) available! Thanks! Lukas,
Thanks for update.
commit 7dabd9fa102e21b3e7c91a0e2eef6854e9f0f40d (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date: Thu May 30 11:29:39 2019 +0200
Allow pcp_pmcd_t domain to domtrans to mdadm_t domain BZ(1714800)
FEDORA-2019-3f20be4d52 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3f20be4d52 selinux-policy-3.14.3-38.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-3f20be4d52 FEDORA-2019-9da5c35472 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-9da5c35472 selinux-policy-3.14.3-39.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-9da5c35472 selinux-policy-3.14.3-39.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: Just installed F-30 on a mirrored drive SELinux is preventing pmdalinux from 'read' accesses on the file mdadm. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that pmdalinux should be allowed read access on the mdadm 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 'pmdalinux' --raw | audit2allow -M my-pmdalinux # semodule -X 300 -i my-pmdalinux.pp Additional Information: Source Context system_u:system_r:pcp_pmcd_t:s0 Target Context system_u:object_r:mdadm_exec_t:s0 Target Objects mdadm [ file ] Source pmdalinux Source Path pmdalinux Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.3-37.fc30.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.1.5-300.fc30.x86_64 #1 SMP Sat May 25 18:00:11 UTC 2019 x86_64 x86_64 Alert Count 460 First Seen 2019-05-27 20:36:42 PDT Last Seen 2019-05-28 14:39:51 PDT Local ID 38926c5c-c455-4b7e-a96e-d8ce1a42c139 Raw Audit Messages type=AVC msg=audit(1559079591.816:4074): avc: denied { read } for pid=1341 comm="pmdalinux" name="mdadm" dev="md127" ino=28322534 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:mdadm_exec_t:s0 tclass=file permissive=0 Hash: pmdalinux,pcp_pmcd_t,mdadm_exec_t,file,read Version-Release number of selected component: selinux-policy-3.14.3-37.fc30.noarch Additional info: component: selinux-policy reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 5.1.5-300.fc30.x86_64 type: libreport