Bug 1488426 - SELinux is preventing mysqld from 'map' accesses on the file /var/lib/mysql/tc.log.
Summary: SELinux is preventing mysqld from 'map' accesses on the file /var/lib/mysql/t...
Keywords:
Status: CLOSED DUPLICATE of bug 1483331
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c222a5a60e507d93440552e5e8e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-05 11:24 UTC by František Zatloukal
Modified: 2018-07-03 11:11 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-07-03 11:11:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description František Zatloukal 2017-09-05 11:24:50 UTC
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

Comment 2 Lukas Vrabec 2018-07-03 11:11:50 UTC

*** This bug has been marked as a duplicate of bug 1483331 ***


Note You need to log in before you can comment on or make changes to this bug.