Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1602153

Summary: Set fcontext for /var/log/mysql directory
Product: [Fedora] Fedora Reporter: Honza Horak <hhorak>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.14.2-34.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1602154 (view as bug list) Environment:
Last Closed: 2018-09-12 02:57:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1602154    

Description Honza Horak 2018-07-17 21:47:58 UTC
Description of problem:
In bug#1590369 we'd like to move the log file into a separate directory, so the daemon is able to re-create the log file after removing it. However, that directory /var/log/mysql does not have correct SELinux context.

Please, add the rules for the directory /var/log/mysql to have context mysqld_log_t.

Comment 1 Honza Horak 2018-07-18 05:56:48 UTC
The rule should likely be for /var/log/mysql(/.*)?

Comment 2 Lukas Vrabec 2018-07-18 20:59:06 UTC
Fix will be part of next selinux-policy build. 

Thanks for report!

Comment 3 Jan Kurik 2018-08-14 11:16:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 4 Fedora Update System 2018-09-11 12:51:06 UTC
selinux-policy-3.14.2-34.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-db240a1726

Comment 5 Fedora Update System 2018-09-12 02:57:23 UTC
selinux-policy-3.14.2-34.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.