Bug 972830

Summary: SELinux is preventing /usr/java/jre1.7.0_17/bin/java from 'unlink' accesses on the file /home/Brito/.gbas.so.
Product: [Fedora] Fedora Reporter: sabugiense
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl, sabugiense
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:9cff07d08f069f2e156422a78b391cca51047e65c87cb0b801f844ffeba70066
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-12 09:19:52 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 sabugiense 2013-06-10 15:49:56 UTC
Description of problem:
SELinux is preventing /usr/java/jre1.7.0_17/bin/java from 'unlink' accesses on the file /home/Brito/.gbas.so.

*****  Plugin mozplugger (99.1 confidence) suggests  *************************

If you want to use the plugin package
Then you must turn off SELinux controls on the Firefox plugins.
Do
# setsebool unconfined_mozilla_plugin_transition 0

*****  Plugin catchall (1.81 confidence) suggests  ***************************

If você acredita que o java deva ser permitido acesso de unlink em .gbas.so file  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# grep java /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                /home/Brito/.gbas.so [ file ]
Source                        java
Source Path                   /usr/java/jre1.7.0_17/bin/java
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           jre-1.7.0_17-fcs.i586
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-97.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-200.fc18.i686.PAE #1 SMP Fri
                              May 24 20:24:58 UTC 2013 i686 i686
Alert Count                   4
First Seen                    2013-06-10 12:26:23 BRT
Last Seen                     2013-06-10 12:26:23 BRT
Local ID                      8efe7837-796e-4c79-b5d7-e72828755439

Raw Audit Messages
type=AVC msg=audit(1370877983.321:335): avc:  denied  { unlink } for  pid=3534 comm="java" name=".gbas.so" dev="sdb3" ino=245 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1370877983.321:335): arch=i386 syscall=unlink success=no exit=EACCES a0=8cb91240 a1=b7756000 a2=4fd19000 a3=8cb91240 items=0 ppid=3479 pid=3534 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=java exe=/usr/java/jre1.7.0_17/bin/java subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: java,mozilla_plugin_t,user_home_t,file,unlink

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:file unlink;

audit2allow -R
require {
	type mozilla_plugin_t;
}

#============= mozilla_plugin_t ==============
userdom_delete_user_home_content_files(mozilla_plugin_t)


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

Comment 1 Miroslav Grepl 2013-06-12 09:19:52 UTC
Where does .gbas.so come from?
 
You will need to run

# setsebool unconfined_mozilla_plugin_transition 0

to make this working.

Comment 2 Red Hat Bugzilla 2023-09-14 01:45:24 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days