Bug 540184

Summary: SELinux is preventing /usr/bin/abrt-pyhook-helper "write" access on /var/cache/abrt.
Product: [Fedora] Fedora Reporter: Dave <dave>
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: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7dfe1b1de319c16afc80054d93f2f6cb7fb44c7880856395c7fd2de67b99ec8a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-23 08:50:31 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 Dave 2009-11-22 17:35:27 UTC
Summary:

SELinux is preventing /usr/bin/abrt-pyhook-helper "write" access on
/var/cache/abrt.

Detailed Description:

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

SELinux denied access requested by abrt-pyhook-hel. It is not expected that this
access is required by abrt-pyhook-hel and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

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

Additional Information:

Source Context                system_u:system_r:kdumpgui_t:s0-s0:c0.c1023
Target Context                system_u:object_r:abrt_var_cache_t:s0
Target Objects                /var/cache/abrt [ dir ]
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           abrt-0.0.11-2.fc12
Policy RPM                    selinux-policy-3.6.32-41.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.5-127.fc12.i686 #1
                              SMP Sat Nov 7 21:41:45 EST 2009 i686 i686
Alert Count                   3
First Seen                    Sat 21 Nov 2009 02:35:54 PM MST
Last Seen                     Sat 21 Nov 2009 02:35:54 PM MST
Local ID                      546f9362-52c8-4dc5-8fed-3ba7b6e8da83
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1258839354.787:177): avc:  denied  { write } for  pid=28498 comm="abrt-pyhook-hel" name="abrt" dev=dm-0 ino=23568 scontext=system_u:system_r:kdumpgui_t:s0-s0:c0.c1023 tcontext=system_u:object_r:abrt_var_cache_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1258839354.787:177): avc:  denied  { add_name } for  pid=28498 comm="abrt-pyhook-hel" name="pyhook-1258839354-28496.lock" scontext=system_u:system_r:kdumpgui_t:s0-s0:c0.c1023 tcontext=system_u:object_r:abrt_var_cache_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1258839354.787:177): avc:  denied  { create } for  pid=28498 comm="abrt-pyhook-hel" name="pyhook-1258839354-28496.lock" scontext=system_u:system_r:kdumpgui_t:s0-s0:c0.c1023 tcontext=system_u:object_r:abrt_var_cache_t:s0 tclass=lnk_file

node=(removed) type=SYSCALL msg=audit(1258839354.787:177): arch=40000003 syscall=83 success=yes exit=0 a0=bfe1722e a1=87360cc a2=d51990 a3=bfe1721e items=0 ppid=28496 pid=28498 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:kdumpgui_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-41.fc12,catchall,abrt-pyhook-hel,kdumpgui_t,abrt_var_cache_t,dir,write
audit2allow suggests:

#============= kdumpgui_t ==============
allow kdumpgui_t abrt_var_cache_t:dir { write add_name };
allow kdumpgui_t abrt_var_cache_t:lnk_file create;

Comment 1 Miroslav Grepl 2009-11-23 08:50:31 UTC

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