Bug 722752 - SELinux is preventing /usr/libexec/mysqld from 'module_request' accesses on the system Unknown.
Summary: SELinux is preventing /usr/libexec/mysqld from 'module_request' accesses on t...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:5f729b79adf...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-17 10:35 UTC by Fl@sh
Modified: 2011-07-19 12:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-19 12:29:37 UTC
Type: ---


Attachments (Terms of Use)

Description Fl@sh 2011-07-17 10:35:53 UTC
SELinux is preventing /usr/libexec/mysqld from 'module_request' accesses on the system Unknown.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allow all domains to have the kernel load modules
Then you must tell SELinux about this by enabling the 'domain_kernel_load_modules' boolean.
Do
setsebool -P domain_kernel_load_modules 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that mysqld should be allowed module_request access on the Unknown system 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:system_r:kernel_t:s0
Target Objects                Unknown [ system ]
Source                        mysqld
Source Path                   /usr/libexec/mysqld
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           mysql-server-5.5.14-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-32.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38.8-35.fc15.x86_64 #1 SMP Wed Jul 6 13:58:54
                              UTC 2011 x86_64 x86_64
Alert Count                   4
First Seen                    Сб. 16 июля 2011 15:52:36
Last Seen                     Вс. 17 июля 2011 11:05:56
Local ID                      f171e2c2-8968-402a-9bba-5114e46d5521

Raw Audit Messages
type=AVC msg=audit(1310889956.425:29): avc:  denied  { module_request } for  pid=1538 comm="mysqld" kmod="net-pf-10" scontext=system_u:system_r:mysqld_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system


type=SYSCALL msg=audit(1310889956.425:29): arch=x86_64 syscall=socket success=no exit=EAFNOSUPPORT a0=a a1=2 a2=0 a3=9 items=0 ppid=1345 pid=1538 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)

Hash: mysqld,mysqld_t,kernel_t,system,module_request

audit2allow

#============= mysqld_t ==============
#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'

allow mysqld_t kernel_t:system module_request;

audit2allow -R

#============= mysqld_t ==============
#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'

allow mysqld_t kernel_t:system module_request;

Comment 1 Daniel Walsh 2011-07-19 12:29:37 UTC
Fixed in selinux-policy-3.10.0-7.fc16


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