Bug 971165

Summary: SELinux is preventing /usr/libexec/abrt-handle-event from 'unlink' accesses on the lnk_file .lock.
Product: [Fedora] Fedora Reporter: morgan read <mstuff>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:fe1a38b776449362ceed00b3946cc7cc8fab8b921a2f58956c5d0cd97f37bf9c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-06 06:19: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 morgan read 2013-06-05 21:08:39 UTC
Description of problem:
Opening Sensors Shell Extension configuration button in Tweak Tool
SELinux is preventing /usr/libexec/abrt-handle-event from 'unlink' accesses on the lnk_file .lock.

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

If you believe that abrt-handle-event should be allowed unlink access on the .lock lnk_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 abrt-handle-eve /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:object_r:initrc_tmp_t:s0
Target Objects                .lock [ lnk_file ]
Source                        abrt-handle-eve
Source Path                   /usr/libexec/abrt-handle-event
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-2.1.4-3.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-97.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-200.fc18.x86_64 #1 SMP Fri
                              May 24 20:10:49 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-06-05 22:05:24 BST
Last Seen                     2013-06-05 22:05:24 BST
Local ID                      981202e2-d39d-497e-be46-5c082ed8e5b8

Raw Audit Messages
type=AVC msg=audit(1370466324.111:451): avc:  denied  { unlink } for  pid=4053 comm="abrt-handle-eve" name=".lock" dev="dm-2" ino=656819 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=lnk_file


type=SYSCALL msg=audit(1370466324.111:451): arch=x86_64 syscall=unlink success=yes exit=0 a0=7fff84b4e160 a1=222e3bc a2=36f2747872 a3=36f2731730 items=0 ppid=740 pid=4053 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=abrt-handle-eve exe=/usr/libexec/abrt-handle-event subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: abrt-handle-eve,abrt_t,initrc_tmp_t,lnk_file,unlink

audit2allow

#============= abrt_t ==============
allow abrt_t initrc_tmp_t:lnk_file unlink;

audit2allow -R
require {
	type initrc_tmp_t;
	type abrt_t;
	class lnk_file unlink;
}

#============= abrt_t ==============
allow abrt_t initrc_tmp_t:lnk_file unlink;


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-200.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-06-06 06:19:39 UTC

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