Bug 1118052
Summary: | SELinux: mariadb cannot name_bind to port 4567 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Richard Su <rwsu> | ||||
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 20 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | selinux-policy-3.12.1-177.fc20 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-07-19 05:59:55 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: | |||||||
Attachments: |
|
Related to bug 1081544 I think the required changes are already in rawhide-contrib https://github.com/selinux-policy/selinux-policy/blob/rawhide-contrib/mysql.te#L113 https://github.com/selinux-policy/selinux-policy/blob/rawhide-contrib/mysql.te#L115 commit 04a3c0a4e989ab7641870295cc0c0daaa2aa3bdd Author: Lukas Vrabec <lvrabec> Date: Thu Jul 10 13:15:18 2014 +0200 Allow mysqld to bind and connect to tram port BZ #1118052 selinux-policy-3.12.1-177.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-177.fc20 Package selinux-policy-3.12.1-177.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-177.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-8390/selinux-policy-3.12.1-177.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-177.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 916959 [details] audit.log Description of problem: Port 4567 is used for clustering. mariadb should be allowed to use this port. Version-Release number of selected component (if applicable): selinux-policy-3.12.1-176.fc20.noarch selinux-policy-targeted-3.12.1-176.fc20.noarch mariadb-5.5.37-1.fc20.x86_64 mariadb-devel-5.5.37-1.fc20.x86_64 mariadb-galera-common-5.5.37-2.fc20.x86_64 mariadb-galera-server-5.5.37-2.fc20.x86_64 mariadb-libs-5.5.37-1.fc20.x86_64 How reproducible: Always Steps to Reproduce: 1. Configure mariadb galera to run in clustering mode. Start up mariadb. Actual results: mariadb fails to start Expected results: mariadb should start Additional info: type=AVC msg=audit(1404782160.637:142): avc: denied { name_bind } for pid=2877 comm="mysqld" src=4567 scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:tram_port_t:s0 tclass=tcp_socket type=SYSCALL msg=audit(1404782160.637:142): arch=c000003e syscall=49 success=no exit=-13 a0=b a1=7fff2cc7d5d0 a2=10 a3=7fff2cc7d3f0 items=0 ppid=2173 pid=2877 auid=4294967295 uid=27 gid=27 euid=27 suid=27 fsuid=27 egid=27 sgid=27 fsgid=27 tty=(none) ses=4294967295 comm="mysqld" exe="/usr/libexec/mysqld" subj=system_u:system_r:mysqld_t:s0 key=(null)