Bug 699012

Summary: SELinux is preventing /usr/libexec/telepathy-idle from 'use' accesses on the fd /dev/null.
Product: [Fedora] Fedora Reporter: Scotty Delicious <scottydelicious>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, jamescape777, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:f139fbff877d63711912d0ed9a019cfdcced98ce9a2d8dd28135f0967acedf28
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-25 13:38:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Scotty Delicious 2011-04-22 15:37:04 UTC
SELinux is preventing /usr/libexec/telepathy-idle from 'use' accesses on the fd /dev/null.

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

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

Additional Information:
Source Context                system_u:object_r:unlabeled_t:s0
Target Context                unconfined_u:unconfined_r:unconfined_dbusd_t:s0-s0
                              :c0.c1023
Target Objects                /dev/null [ fd ]
Source                        telepathy-idle
Source Path                   /usr/libexec/telepathy-idle
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           telepathy-idle-0.1.9-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-15.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP Wed Mar
                              30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 22 Apr 2011 10:35:40 AM CDT
Last Seen                     Fri 22 Apr 2011 10:35:40 AM CDT
Local ID                      8901ef31-ab50-4f9a-8129-ce305a62250a

Raw Audit Messages
type=AVC msg=audit(1303486540.368:234): avc:  denied  { use } for  pid=20603 comm="telepathy-idle" path="/dev/null" dev=devtmpfs ino=4348 scontext=system_u:object_r:unlabeled_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_dbusd_t:s0-s0:c0.c1023 tclass=fd


type=SYSCALL msg=audit(1303486540.368:234): arch=x86_64 syscall=write success=no exit=EACCES a0=2 a1=2203960 a2=19 a3=1 items=0 ppid=1 pid=20603 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=system_u:object_r:unlabeled_t:s0 key=(null)

Hash: telepathy-idle,unlabeled_t,unconfined_dbusd_t,fd,use

audit2allow

#============= unlabeled_t ==============
allow unlabeled_t unconfined_dbusd_t:fd use;

audit2allow -R

#============= unlabeled_t ==============
allow unlabeled_t unconfined_dbusd_t:fd use;

Comment 1 Daniel Walsh 2011-04-25 13:38:18 UTC

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