Bug 1488426
| Summary: | SELinux is preventing mysqld from 'map' accesses on the file /var/lib/mysql/tc.log. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | František Zatloukal <fzatlouk> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 27 | CC: | dwalsh, jjanco, lsm5, lvrabec, mgrepl, plautrba, pmoore |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:c222a5a60e507d93440552e5e8eb3a0baf15c523b0cb03603e6cf3dacb116049;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-07-03 11:11:50 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: | |||
Hello, I think this and bug 1483712 are related to bug 1483331 and are fixed there by commits [1] for f27, [2] for f28 and rawhide. Maybe mark those as duplicates? [1] https://github.com/kubco2/selinux-policy-contrib/commit/542b8bfcda1e26524d735ec09016abd3278ae4e0#diff-608c732bc14142051f1c6fbda023c9e2 [2] https://github.com/kubco2/selinux-policy-contrib/commit/33f9f95bb13dae57aaafc58f66a59deb61dd8426#diff-608c732bc14142051f1c6fbda023c9e2 *** This bug has been marked as a duplicate of bug 1483331 *** |
Description of problem: Starting MariaDB failed because of SELinux preventing it from writing to log file. SELinux is preventing mysqld from 'map' accesses on the file /var/lib/mysql/tc.log. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that mysqld should be allowed map access on the tc.log 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 'mysqld' --raw | audit2allow -M my-mysqld # semodule -X 300 -i my-mysqld.pp Additional Information: Source Context system_u:system_r:mysqld_t:s0 Target Context system_u:object_r:mysqld_db_t:s0 Target Objects /var/lib/mysql/tc.log [ file ] Source mysqld Source Path mysqld Port <Neznámé> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-278.fc27.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.13.0-0.rc7.git0.1.fc27.x86_64 #1 SMP Mon Aug 28 02:33:21 UTC 2017 x86_64 x86_64 Alert Count 1 First Seen 2017-09-05 12:44:28 CEST Last Seen 2017-09-05 12:44:28 CEST Local ID 69cf9a0a-9c2e-4021-b7fc-d98038eb6775 Raw Audit Messages type=AVC msg=audit(1504608268.557:1471): avc: denied { map } for pid=27094 comm="mysqld" path="/var/lib/mysql/tc.log" dev="dm-1" ino=1345044 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:mysqld_db_t:s0 tclass=file permissive=0 Hash: mysqld,mysqld_t,mysqld_db_t,file,map Version-Release number of selected component: selinux-policy-3.13.1-278.fc27.noarch Additional info: component: selinux-policy reporter: libreport-2.9.2 hashmarkername: setroubleshoot kernel: 4.13.0-0.rc7.git0.1.fc27.x86_64 type: libreport Potential duplicate: bug 1483712