Bug 999594
| Summary: | MariaDB specific log file | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Honza Horak <hhorak> | |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | rawhide | CC: | dominick.grift, dwalsh, mgrepl | |
| Target Milestone: | --- | Keywords: | Reopened | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 999595 (view as bug list) | Environment: | ||
| Last Closed: | 2013-08-29 12:28:13 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: | 999595 | |||
|
Description
Honza Horak
2013-08-21 16:22:29 UTC
commit 2e96c326b6a4891e7619be451039da64106e8725
Author: Miroslav Grepl <mgrepl>
Date: Thu Aug 22 13:45:24 2013 +0200
Add support for /var/log/mariadb dir and allow mysqld_safe to list this directory
It turned out that in case we use a symlink /var/log/mysqld.log => /var/log/mariadb/mariadb.log for backward compatibility, SELinux is not entirely happy even with selinux-policy-3.12.1-73.fc19.noarch:
Aug 29 13:33:13 dhcp-25-53 kernel: [1749532.345385] type=1400 audit(1377775993.717:145556): avc: denied { read } for
pid=17580 comm="chmod" name="mysqld.log" dev="dm-1" ino=416401 scontext=system_u:system_r:mysqld_safe_t:s0 tcontext=
system_u:object_r:mysqld_log_t:s0 tclass=lnk_file
Could you, please, fix selinux-policy to work fine even with /var/log/mysqld.log being a symlink?
commit cb625aef480ba682952aae1eca2592e9e5eed385
Author: Miroslav Grepl <mgrepl>
Date: Thu Aug 29 14:28:02 2013 +0200
Allow mysqld_safe_t to handle also symlinks in /var/log/mariadb
|