Bug 997390

Summary: SELinux is preventing /usr/bin/chcon from 'relabelto' accesses on the file .0gbas.so_u.
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
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:85521c6e3506affed5f92d206a93f42b2db2382d4d51337fbe577a377b36e3cb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-15 19:02:41 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-08-15 11:38:27 UTC
Description of problem:
SELinux is preventing /usr/bin/chcon from 'relabelto' accesses on the file .0gbas.so_u.

*****  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 chcon deva ser permitido acesso de relabelto em .0gbas.so_u 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 chcon /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:textrel_shlib_t:s0
Target Objects                .0gbas.so_u [ file ]
Source                        chcon
Source Path                   /usr/bin/chcon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.17-8.fc18.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-100.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.10.6-100.fc18.i686.PAE #1 SMP
                              Mon Aug 12 16:54:01 UTC 2013 i686 i686
Alert Count                   1
First Seen                    2013-08-15 08:36:58 BRT
Last Seen                     2013-08-15 08:36:58 BRT
Local ID                      b0b67981-f74b-422d-b262-59c988e54b03

Raw Audit Messages
type=AVC msg=audit(1376566618.996:333): avc:  denied  { relabelto } for  pid=1862 comm="chcon" name=".0gbas.so_u" dev="sdc3" ino=610 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:textrel_shlib_t:s0 tclass=file


type=SYSCALL msg=audit(1376566618.996:333): arch=i386 syscall=setxattr success=yes exit=0 a0=88008d8 a1=43949e49 a2=8801cd0 a3=29 items=0 ppid=1723 pid=1862 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=chcon exe=/usr/bin/chcon subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: chcon,mozilla_plugin_t,textrel_shlib_t,file,relabelto

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t textrel_shlib_t:file relabelto;

audit2allow -R
require {
	type mozilla_plugin_t;
}

#============= mozilla_plugin_t ==============
libs_relabel_shared_libs(mozilla_plugin_t)


Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.10.6-100.fc18.i686.PAE
type:           libreport

Comment 1 Daniel Walsh 2013-08-15 19:02:41 UTC
If you have a plugin that is trying to do a chcon, that is pretty weird.

You can disable the protection or remove mozplugger

yum remove mozplugger

*****  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