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
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 ***