Bug 1238972 - SELinux is preventing mysqld from 'create' accesses on the file appl_products.csv.
Summary: SELinux is preventing mysqld from 'create' accesses on the file appl_products...
Keywords:
Status: CLOSED DUPLICATE of bug 1238970
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b201100d7a6e5522b46efbff41d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-03 07:39 UTC by Mikhail
Modified: 2015-07-04 10:48 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-07-04 10:48:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2015-07-03 07:39:29 UTC
Description of problem:
SELinux is preventing mysqld from 'create' accesses on the file appl_products.csv.

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

If you believe that mysqld should be allowed create access on the appl_products.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                appl_products.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                   2
First Seen                    2015-07-03 12:38:10 YEKT
Last Seen                     2015-07-03 12:38:10 YEKT
Local ID                      0066394d-cbbf-478a-b37d-aca571d91257

Raw Audit Messages
type=AVC msg=audit(1435909090.180:3053): avc:  denied  { create } for  pid=14834 comm="mysqld" name="appl_products.csv" 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,create

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:48:10 UTC

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


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