Bug 890255 - SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/bin/kmod.
Summary: SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/...
Keywords:
Status: CLOSED DUPLICATE of bug 858714
Alias: None
Product: Fedora
Classification: Fedora
Component: colord
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2bcea6bccb5c3b5cd383335e204...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-26 05:05 UTC by kksheth
Modified: 2013-04-24 10:36 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-24 10:36:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-12-26 05:05 UTC, kksheth
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-12-26 05:06 UTC, kksheth
no flags Details

Description kksheth 2012-12-26 05:05:52 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.10-2.fc17.i686

description:
:SELinux is preventing /usr/bin/bash from 'execute' accesses on the file /usr/bin/kmod.
:
:*****  Plugin leaks (86.2 confidence) suggests  ******************************
:
:If you want to ignore bash trying to execute access the kmod file, because you believe it should not need this access.
:Then you should report this as a bug.  
:You can generate a local policy module to dontaudit this access.
:Do
:# grep /usr/bin/bash /var/log/audit/audit.log | audit2allow -D -M mypol
:# semodule -i mypol.pp
:
:*****  Plugin catchall (14.7 confidence) suggests  ***************************
:
:If you believe that bash should be allowed execute access on the kmod file 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 sh /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:colord_t:s0
:Target Context                system_u:object_r:insmod_exec_t:s0
:Target Objects                /usr/bin/kmod [ file ]
:Source                        sh
:Source Path                   /usr/bin/bash
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           bash-4.2.39-2.fc17.i686
:Target RPM Packages           kmod-7-2.fc17.i686
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.10-2.fc17.i686 #1 SMP Tue Dec
:                              11 18:33:15 UTC 2012 i686 i686
:Alert Count                   32
:First Seen                    2012-12-26 10:29:45 IST
:Last Seen                     2012-12-26 10:29:50 IST
:Local ID                      706de9ee-4acf-4404-b6ff-7b23d96e177e
:
:Raw Audit Messages
:type=AVC msg=audit(1356497990.9:179): avc:  denied  { execute } for  pid=1619 comm="sh" name="kmod" dev="sda6" ino=140314 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:insmod_exec_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1356497990.9:179): arch=i386 syscall=execve success=no exit=EACCES a0=82be1a8 a1=82be2a0 a2=82bd720 a3=82be2a0 items=0 ppid=1618 pid=1619 auid=4294967295 uid=997 gid=994 euid=997 suid=997 fsuid=997 egid=994 sgid=994 fsgid=994 tty=(none) ses=4294967295 comm=sh exe=/usr/bin/bash subj=system_u:system_r:colord_t:s0 key=(null)
:
:Hash: sh,colord_t,insmod_exec_t,file,execute
:
:audit2allow
:
:#============= colord_t ==============
:allow colord_t insmod_exec_t:file execute;
:
:audit2allow -R
:
:#============= colord_t ==============
:allow colord_t insmod_exec_t:file execute;
:

Comment 1 kksheth 2012-12-26 05:05:56 UTC
Created attachment 669087 [details]
File: type

Comment 2 kksheth 2012-12-26 05:06:00 UTC
Created attachment 669088 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-12-26 12:31:13 UTC
Any idea why colord would be executing kmod?

Comment 4 Richard Hughes 2013-04-24 10:36:47 UTC

*** This bug has been marked as a duplicate of bug 858714 ***


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