Bug 1238974

Summary: SELinux is preventing mysqld from 'setattr' accesses on the file #translit.csv.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:19e377e9269015e498bceae69b50246235e0c7491afd172e658f60639b1e1c40
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-04 10:47:55 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:

Description Mikhail 2015-07-03 07:40:06 UTC
Description of problem:
SELinux is preventing mysqld from 'setattr' accesses on the file #translit.csv.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that mysqld should be allowed setattr access on the #translit.csv 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:
# grep mysqld /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:mysqld_t:s0
Target Context                system_u:object_r:httpd_user_content_t:s0
Target Objects                #translit.csv [ file ]
Source                        mysqld
Source Path                   mysqld
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.4.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.0.7-300.fc22.x86_64+debug #1 SMP
                              Mon Jun 29 21:56:44 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-07-03 12:38:10 YEKT
Last Seen                     2015-07-03 12:38:10 YEKT
Local ID                      6b42fa66-ae01-41df-a5ce-1724c8f67458

Raw Audit Messages
type=AVC msg=audit(1435909090.176:3052): avc:  denied  { setattr } for  pid=14834 comm="mysqld" name="#translit.csv" dev="sdb1" ino=39701354 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:httpd_user_content_t:s0 tclass=file permissive=1


Hash: mysqld,mysqld_t,httpd_user_content_t,file,setattr

Version-Release number of selected component:
selinux-policy-3.13.1-128.4.fc22.noarch

Additional info:
reporter:       libreport-2.6.0
hashmarkername: setroubleshoot
kernel:         4.0.7-300.fc22.x86_64+debug
type:           libreport

Comment 1 Daniel Walsh 2015-07-04 10:47:55 UTC

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