Bug 885271 - SELinux is preventing /usr/bin/python2.7 from 'module_request' accesses on the system .
Summary: SELinux is preventing /usr/bin/python2.7 from 'module_request' accesses on th...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:af01018625ec0866f79939a1862...
Depends On:
TreeView+ depends on / blocked
Reported: 2012-12-08 01:24 UTC by sheepdestroyer
Modified: 2013-02-18 13:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-02-18 13:50:43 UTC
Type: ---

Attachments (Terms of Use)

Description sheepdestroyer 2012-12-08 01:24:21 UTC
Description of problem:
tried to do
sudo tuned-adm profile balanced
SELinux is preventing /usr/bin/python2.7 from 'module_request' accesses on the system .

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that python2.7 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.
allow this access for now by executing:
# grep tuned /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:tuned_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                 [ system ]
Source                        tuned
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.3-13.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-60.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.0-rc8 #1 SMP Tue Dec 4
                              21:37:33 CET 2012 x86_64 x86_64
Alert Count                   1
First Seen                    2012-12-08 03:21:40 CET
Last Seen                     2012-12-08 03:21:40 CET
Local ID                      2260cef3-971e-42d3-bc41-e3cbb9b28a6a

Raw Audit Messages
type=AVC msg=audit(1354933300.205:122): avc:  denied  { module_request } for  pid=2025 comm="tuned" kmod="deadline-iosched" scontext=system_u:system_r:tuned_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system

type=SYSCALL msg=audit(1354933300.205:122): arch=x86_64 syscall=write success=no exit=EINVAL a0=9 a1=7fe533429000 a2=8 a3=31c0864410 items=0 ppid=1 pid=2025 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=tuned exe=/usr/bin/python2.7 subj=system_u:system_r:tuned_t:s0 key=(null)

Hash: tuned,tuned_t,kernel_t,system,module_request


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

allow tuned_t kernel_t:system module_request;

audit2allow -R

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

allow tuned_t kernel_t:system module_request;

Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.0-rc8
type:           libreport

Comment 1 Daniel Walsh 2013-02-18 13:50:43 UTC
Fixed in selinux-policy-3.11.1-62

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