Bug 541671

Summary: SELinux is preventing /usr/bin/abrt-pyhook-helper access to a leaked /dev/console file descriptor.
Product: [Fedora] Fedora Reporter: a.aspden
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: a.aspden, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b10013590a9e3c4e4b4935c5b7a25d1c66eda85c59ae05065d008c24fca8111d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-27 13:17:39 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:

Description a.aspden 2009-11-26 17:19:13 UTC
Summary:

SELinux is preventing /usr/bin/abrt-pyhook-helper access to a leaked
/dev/console file descriptor.

Detailed Description:

[abrt-pyhook-hel has a permissive type (abrt_helper_t). This access was not
denied.]

SELinux denied access requested by the abrt-pyhook-hel command. It looks like
this is either a leaked descriptor or abrt-pyhook-hel output was redirected to a
file it is not allowed to access. Leaks usually can be ignored since SELinux is
just closing the leak and reporting the error. The application does not use the
descriptor, so it will run properly. If this is a redirection, you will not get
output in the /dev/console. You should generate a bugzilla on selinux-policy,
and it will get routed to the appropriate package. You can safely ignore this
avc.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385)

Additional Information:

Source Context                system_u:system_r:abrt_helper_t:s0
Target Context                system_u:object_r:console_device_t:s0
Target Objects                /dev/console [ chr_file ]
Source                        abrt-pyhook-hel
Source Path                   /usr/bin/abrt-pyhook-helper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-addon-python-0.0.11-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-46.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14
                              EST 2009 x86_64 x86_64
Alert Count                   1
First Seen                    Thu 26 Nov 2009 09:01:37 AM PST
Last Seen                     Thu 26 Nov 2009 09:01:37 AM PST
Local ID                      2b75a82c-8572-4480-ab65-66ddb7629925
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259254897.402:6): avc:  denied  { read write } for  pid=1501 comm="abrt-pyhook-hel" path="/dev/console" dev=tmpfs ino=2076 scontext=system_u:system_r:abrt_helper_t:s0 tcontext=system_u:object_r:console_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1259254897.402:6): arch=c000003e syscall=59 success=yes exit=0 a0=ddaaa0 a1=94af50 a2=7fff30f512e0 a3=20 items=0 ppid=1492 pid=1501 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="abrt-pyhook-hel" exe="/usr/bin/abrt-pyhook-helper" subj=system_u:system_r:abrt_helper_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-46.fc12,leaks,abrt-pyhook-hel,abrt_helper_t,console_device_t,chr_file,read,write
audit2allow suggests:

#============= abrt_helper_t ==============
allow abrt_helper_t console_device_t:chr_file { read write };

Comment 1 Miroslav Grepl 2009-11-27 13:17:39 UTC

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