Bug 766608

Summary: SELinux is preventing /usr/sbin/skdump from 'module_request' accesses on the system Unknown.
Product: [Fedora] Fedora Reporter: vikram goyal <vikigoyal>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:9f7e0f8a821a400fc638a4ba9145d00710191504fb48c05adbe60e9a9e14df5e
Fixed In Version: selinux-policy-3.9.16-50.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-17 20:26:16 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:

Description vikram goyal 2011-12-12 12:49:26 UTC
SELinux is preventing /usr/sbin/skdump 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 skdump 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 skdump /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:system_r:kernel_t:s0
Target Objects                Unknown [ system ]
Source                        skdump
Source Path                   /usr/sbin/skdump
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           libatasmart-0.17-3.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-48.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.41.1-1.fc15.x86_64 #1 SMP Fri Nov 11 21:36:28
                              UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 12 Dec 2011 06:16:16 PM IST
Last Seen                     Mon 12 Dec 2011 06:16:16 PM IST
Local ID                      425a22c1-33fc-4b06-b596-f9c3c191e322

Raw Audit Messages
type=AVC msg=audit(1323693976.46:3174): avc:  denied  { module_request } for  pid=20257 comm="skdump" kmod="block-major-8-32" scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=system


type=SYSCALL msg=audit(1323693976.46:3174): arch=x86_64 syscall=open success=no exit=ENXIO a0=a916a0 a1=80900 a2=0 a3=0 items=0 ppid=20251 pid=20257 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=skdump exe=/usr/sbin/skdump subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: skdump,abrt_t,kernel_t,system,module_request

audit2allow

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

allow abrt_t kernel_t:system module_request;

audit2allow -R

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

allow abrt_t kernel_t:system module_request;

Comment 1 Daniel Walsh 2011-12-12 16:30:59 UTC
Miroslav we should probably allow this access.

Comment 2 Miroslav Grepl 2011-12-13 08:29:30 UTC
Fixed in selinux-policy-3.10.0-67.fc16

Comment 3 Fedora Update System 2011-12-14 13:40:44 UTC
selinux-policy-3.9.16-50.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-50.fc15

Comment 4 Fedora Update System 2011-12-14 23:30:32 UTC
Package selinux-policy-3.9.16-50.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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.9.16-50.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17089/selinux-policy-3.9.16-50.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-01-17 20:26:16 UTC
selinux-policy-3.9.16-50.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.