Bug 1483712 - 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: 28
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-08-21 19:04 UTC by Mikhail
Modified: 2018-07-03 11:11 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-03 11:11:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2017-08-21 19:04:01 UTC
Description of problem:
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                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-272.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.13.0-0.rc5.git4.1.fc28.x86_64 #1
                              SMP Fri Aug 18 20:40:13 UTC 2017 x86_64 x86_64
Alert Count                   13
First Seen                    2017-08-20 19:24:45 +05
Last Seen                     2017-08-20 20:19:25 +05
Local ID                      1f980378-c5ec-44d7-b32d-f317868dda0f

Raw Audit Messages
type=AVC msg=audit(1503242365.257:65267): avc:  denied  { map } for  pid=30111 comm="mysqld" path="/var/lib/mysql/tc.log" dev="sda1" ino=3671073 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:mysqld_db_t:s0 tclass=file permissive=1


Hash: mysqld,mysqld_t,mysqld_db_t,file,map

Version-Release number of selected component:
selinux-policy-3.13.1-272.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.13.0-0.rc5.git4.1.fc28.x86_64
type:           libreport

Comment 1 Fedora End Of Life 2018-02-20 15:25:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 2 Lukas Vrabec 2018-07-03 11:11:58 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.