Bug 706964 - SELinux is preventing /usr/libexec/colord from 'module_request' accesses on the system Unknown.
Summary: SELinux is preventing /usr/libexec/colord 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
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:fedbc01894e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-23 15:47 UTC by Eric Blake
Modified: 2011-10-06 19:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-23 16:21:00 UTC
Type: ---


Attachments (Terms of Use)

Description Eric Blake 2011-05-23 15:47:16 UTC
SELinux is preventing /usr/libexec/colord 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 colord 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 colord /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:colord_t:s0-s0:c0.c1023
Target Context                system_u:system_r:kernel_t:s0
Target Objects                Unknown [ system ]
Source                        colord
Source Path                   /usr/libexec/colord
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           colord-0.1.7-1.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-22.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.39-1.fc16.x86_64 #1 SMP Sat
                              May 21 02:34:01 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Mon 23 May 2011 09:41:29 AM MDT
Last Seen                     Mon 23 May 2011 09:41:29 AM MDT
Local ID                      64208a0d-c001-462d-9312-a0c75c5a8cdb

Raw Audit Messages
type=AVC msg=audit(1306165289.887:55): avc:  denied  { module_request } for  pid=1878 comm="colord" kmod="char-major-6-3" scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=system


type=SYSCALL msg=audit(1306165289.887:55): arch=x86_64 syscall=open success=no exit=ENXIO a0=7fff0e4d4820 a1=100 a2=7fff0e4d4828 a3=7fff0e4d4630 items=0 ppid=1 pid=1878 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=colord exe=/usr/libexec/colord subj=system_u:system_r:colord_t:s0-s0:c0.c1023 key=(null)

Hash: colord,colord_t,kernel_t,system,module_request

audit2allow

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

allow colord_t kernel_t:system module_request;

audit2allow -R

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

allow colord_t kernel_t:system module_request;

Comment 1 Dominick Grift 2011-05-23 15:52:06 UTC
I added a fix for this issue here

http://git.fedorahosted.org/git/?p=selinux-policy.git;a=commitdiff;h=47f189ebf5d38566a93dc4a78e1a858c462c2f7c

If approved it should be hitting your repository soon

Comment 2 Daniel Walsh 2011-05-23 16:21:00 UTC
Looks good.

Miroslav probably need this in F15 also.

Comment 3 Miroslav Grepl 2011-05-24 05:56:09 UTC
Added.


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