Bug 664231 - SELinux is preventing /usr/libexec/telepathy-idle from 'getattr' accesses on the chr_file /dev/urandom.
Summary: SELinux is preventing /usr/libexec/telepathy-idle from 'getattr' accesses on ...
Keywords:
Status: CLOSED DUPLICATE of bug 664230
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:e62f143a5ab...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-19 12:40 UTC by Nicolas Mailhot
Modified: 2010-12-20 08:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-20 08:52:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2010-12-19 12:40:49 UTC
SELinux is preventing /usr/libexec/telepathy-idle from 'getattr' accesses on the chr_file /dev/urandom.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to enable reading of urandom for all domains.
Then you must tell SELinux about this by enabling the 'global_ssp' boolean.
Do
setsebool -P global_ssp 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that telepathy-idle should be allowed getattr access on the urandom chr_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 /usr/libexec/telepathy-idle /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:telepathy_idle_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:urandom_device_t:s0
Target Objects                /dev/urandom [ chr_file ]
Source                        telepathy-idle
Source Path                   /usr/libexec/telepathy-idle
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           telepathy-idle-0.1.7-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.11-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-0.rc6.git0.1.fc15.x86_64 #1
                              SMP Thu Dec 16 15:48:53 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    dim. 19 déc. 2010 13:38:22 CET
Last Seen                     dim. 19 déc. 2010 13:38:22 CET
Local ID                      dd7deb76-3404-43d7-9e87-04d2ef0c214a

Raw Audit Messages
type=AVC msg=audit(1292762302.872:160): avc:  denied  { getattr } for  pid=2553 comm="telepathy-idle" path="/dev/urandom" dev=devtmpfs ino=5348 scontext=unconfined_u:unconfined_r:telepathy_idle_t:s0-s0:c0.c1023 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file

telepathy-idle,telepathy_idle_t,urandom_device_t,chr_file,getattr
type=SYSCALL msg=audit(1292762302.872:160): arch=x86_64 syscall=fstat success=yes exit=0 a0=8 a1=7fff3bb1e380 a2=7fff3bb1e380 a3=18 items=0 ppid=1 pid=2553 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=telepathy-idle exe=/usr/libexec/telepathy-idle subj=unconfined_u:unconfined_r:telepathy_idle_t:s0-s0:c0.c1023 key=(null)
telepathy-idle,telepathy_idle_t,urandom_device_t,chr_file,getattr

#============= telepathy_idle_t ==============
#!!!! This avc can be allowed using the boolean 'global_ssp'

allow telepathy_idle_t urandom_device_t:chr_file getattr;

Comment 1 Miroslav Grepl 2010-12-20 08:52:29 UTC

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


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