Bug 766608 - SELinux is preventing /usr/sbin/skdump from 'module_request' accesses on the system Unknown.
Summary: SELinux is preventing /usr/sbin/skdump from 'module_request' accesses on the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:9f7e0f8a821...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 12:49 UTC by vikram goyal
Modified: 2012-01-17 20:26 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.16-50.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-17 20:26:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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