Bug 997390 - SELinux is preventing /usr/bin/chcon from 'relabelto' accesses on the file .0gbas.so_u.
SELinux is preventing /usr/bin/chcon from 'relabelto' accesses on the file .0...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
18
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:85521c6e3506affed5f92d206a9...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-15 07:38 EDT by sabugiense
Modified: 2013-08-15 15:02 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-08-15 15:02:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description sabugiense 2013-08-15 07:38:27 EDT
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 15:02:41 EDT
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

Note You need to log in before you can comment on or make changes to this bug.