Bug 718777

Summary: SELinux is preventing /usr/bin/gdb from 'open' accesses on the file /home/rrowe/.jagex_cache_32/runescape/libjaclib.so.
Product: [Fedora] Fedora Reporter: Robert Rowe <r_rowe>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:0417a92dcdd608584206ec3e079e00f8190c3ef9eaf68e18919785d4f0170a32
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-08 20:13:00 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 Robert Rowe 2011-07-04 14:57:29 UTC
SELinux is preventing /usr/bin/gdb from 'open' accesses on the file /home/rrowe/.jagex_cache_32/runescape/libjaclib.so.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/home/rrowe/.jagex_cache_32/runescape/libjaclib.so default label should be user_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/rrowe/.jagex_cache_32/runescape/libjaclib.so

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that gdb should be allowed open access on the libjaclib.so 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 gdb /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                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                /home/rrowe/.jagex_cache_32/runescape/libjaclib.so
                              [ file ]
Source                        gdb
Source Path                   /usr/bin/gdb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdb-7.2-51.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-92.fc14.i686 #1 SMP
                              Sat May 21 17:39:42 UTC 2011 i686 i686
Alert Count                   2
First Seen                    Mon 04 Jul 2011 10:56:05 AM EDT
Last Seen                     Mon 04 Jul 2011 10:56:05 AM EDT
Local ID                      44df6db8-b588-46f2-b106-d86cc549e5f0

Raw Audit Messages
type=AVC msg=audit(1309791365.177:24493): avc:  denied  { open } for  pid=2863 comm="gdb" name="libjaclib.so" dev=dm-2 ino=263560 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1309791365.177:24493): arch=i386 syscall=open success=no exit=EACCES a0=bfc48920 a1=8000 a2=0 a3=8322fc9 items=0 ppid=1479 pid=2863 auid=4294967295 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm=gdb exe=/usr/bin/gdb subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: gdb,abrt_t,user_home_dir_t,file,open

audit2allow

#============= abrt_t ==============
allow abrt_t user_home_dir_t:file open;

audit2allow -R

#============= abrt_t ==============
allow abrt_t user_home_dir_t:file open;

Comment 1 Robert Rowe 2011-07-04 14:59:23 UTC
Java continues to crash in Firefox. When attempting to send a bug report I get this alert even after taking the recommended actions.

Comment 2 Daniel Walsh 2011-07-05 17:51:47 UTC
restorecon -R -v /home

Does this fix the problem