Bug 873687

Summary: SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /usr/bin/kmod.
Product: [Fedora] Fedora Reporter: Oldřich Válek <newskylinex>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, e_zandanov, kkshethin, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:783f7bb79d3052b0a15d3ac2abf7bffbc30f2c7021b0555699919d03fa8586d6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-08 09:06:35 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Oldřich Válek 2012-11-06 13:43:11 UTC
Description of problem:
I don't know what coused it, but it might happened around two weeks ago.  (I remember that i installed wine and playOnLinux, but I'm not sure if it has something to do with that.) Automatic time syncing via internet stopped work, so I disabled it. But now every time i reboot computer, time is +2 hours different then I want. When I adjust it to be right, it outputs some error, however time is being changed. It only works until I restart computer. (My timezone is CET.) When I try to enable automatic syncing it says:
Unable to contact time server: Public Time Server (pool.ntp.org). So I tried different servers, but it is always the same.


Additional info:
libreport version: 2.0.18
kernel:         3.6.3-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /usr/bin/kmod.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that bash should be allowed getattr 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.37-2.fc17.x86_64
:Target RPM Packages           kmod-7-2.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.3-1.fc17.x86_64 #1 SMP Mon Oct
:                              22 15:32:35 UTC 2012 x86_64 x86_64
:Alert Count                   19
:First Seen                    2012-11-05 21:21:49 CET
:Last Seen                     2012-11-06 16:04:36 CET
:Local ID                      05e022fb-b3c6-4234-863a-e2059e59a4b4
:
:Raw Audit Messages
:type=AVC msg=audit(1352214276.803:45): avc:  denied  { getattr } for  pid=770 comm="sh" path="/usr/bin/kmod" dev="sda5" ino=21679 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:insmod_exec_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1352214276.803:45): arch=x86_64 syscall=stat success=no exit=EACCES a0=1429f70 a1=7fffec663200 a2=7fffec663200 a3=18 items=0 ppid=758 pid=770 auid=4294967295 uid=996 gid=994 euid=996 suid=996 fsuid=996 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,getattr
:
:audit2allow
:
:#============= colord_t ==============
:allow colord_t insmod_exec_t:file getattr;
:
:audit2allow -R
:
:#============= colord_t ==============
:allow colord_t insmod_exec_t:file getattr;
:

Comment 1 Oldřich Válek 2012-11-06 13:43:14 UTC
Created attachment 639382 [details]
File: type

Comment 2 Oldřich Válek 2012-11-06 13:43:16 UTC
Created attachment 639383 [details]
File: hashmarkername

Comment 3 Oldřich Válek 2012-11-06 14:44:18 UTC
Now I'm not sure if it really is a bug, because i adjusted time via typing "system-config-date" into console, and since then it works properly.

Comment 4 Daniel Walsh 2012-11-06 18:44:08 UTC
Any chance kmod is in a profiles script in /etc/profile.d

Comment 5 Fedora End Of Life 2013-07-04 00:52:11 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.