Bug 879854

Summary: SELinux is preventing rsyslogd from 'module_request' accesses on the system .
Product: [Fedora] Fedora Reporter: Aris <makrismym>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:131915d838daf7069a4d0ad51c65d884d2ab62d772d7127d7fdb47eac68b2ecd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-07 04:01:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Aris 2012-11-24 20:50:08 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.7-4.fc17.i686

description:
:SELinux is preventing rsyslogd from 'module_request' accesses on the system .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that rsyslogd should be allowed module_request access on the  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 rsyslogd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:syslogd_t:s0
:Target Context                system_u:system_r:kernel_t:s0
:Target Objects                 [ system ]
:Source                        rsyslogd
:Source Path                   rsyslogd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-159.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.6-1.fc17.i686 #1 SMP Mon Nov 5
:                              22:11:18 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    2012-11-24 16:05:55 EET
:Last Seen                     2012-11-24 16:05:55 EET
:Local ID                      c91b3c5b-36bf-4ae0-91fb-4d687305cb3b
:
:Raw Audit Messages
:type=AVC msg=audit(1353765955.12:16): avc:  denied  { module_request } for  pid=616 comm="rsyslogd" kmod="netdev-(null)" scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system
:
:
:Hash: rsyslogd,syslogd_t,kernel_t,system,module_request
:
:audit2allow
:
:#============= syslogd_t ==============
:#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'
:
:allow syslogd_t kernel_t:system module_request;
:
:audit2allow -R
:
:#============= syslogd_t ==============
:#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'
:
:allow syslogd_t kernel_t:system module_request;
:

Comment 1 Aris 2012-11-24 20:50:11 UTC
Created attachment 651264 [details]
File: type

Comment 2 Aris 2012-11-24 20:50:13 UTC
Created attachment 651265 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-26 16:06:39 UTC
Did it happen by default or did you setup anything?

Comment 4 Miroslav Grepl 2012-11-26 16:14:48 UTC
Added.

commit 3df05ac13c8a32b53666ccd74eaee74ff970ac3a
Author: Miroslav Grepl <mgrepl>
Date:   Mon Nov 26 17:12:34 2012 +0100

    Allow syslogd to request the kernel to load a module

Comment 5 Fedora Update System 2012-12-17 18:42:03 UTC
selinux-policy-3.10.0-165.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-165.fc17

Comment 6 Fedora Update System 2012-12-18 02:37:47 UTC
Package selinux-policy-3.10.0-165.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-165.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-165.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-01-05 06:41:17 UTC
Package selinux-policy-3.10.0-166.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2013-01-07 04:01:13 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.