Bug 974536 - SELinux is preventing /usr/java/jre1.7.0_21/bin/java from 'open' accesses on the file /proc/mtrr. [NEEDINFO]
SELinux is preventing /usr/java/jre1.7.0_21/bin/java from 'open' accesses on ...
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:38ded5f25e25e584b8a76cfa498...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-14 07:28 EDT by sabugiense
Modified: 2013-06-18 02:44 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-18 02:44:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
mgrepl: needinfo? (sabugiense)


Attachments (Terms of Use)

  None (edit)
Description sabugiense 2013-06-14 07:28:02 EDT
Description of problem:
SELinux is preventing /usr/java/jre1.7.0_21/bin/java from 'open' accesses on the file /proc/mtrr.

*****  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 open em mtrr 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                system_u:object_r:mtrr_device_t:s0
Target Objects                /proc/mtrr [ file ]
Source                        java
Source Path                   /usr/java/jre1.7.0_21/bin/java
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           jre-1.7.0_21-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.5-201.fc18.i686.PAE #1 SMP Tue
                              Jun 11 20:23:05 UTC 2013 i686 i686
Alert Count                   1
First Seen                    2013-06-14 08:26:29 BRT
Last Seen                     2013-06-14 08:26:29 BRT
Local ID                      ddabd594-c04e-4888-a0bb-090f7c6ca3a2

Raw Audit Messages
type=AVC msg=audit(1371209189.550:334): avc:  denied  { open } for  pid=1972 comm="java" path="/proc/mtrr" dev="proc" ino=4026531960 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mtrr_device_t:s0 tclass=file


type=SYSCALL msg=audit(1371209189.550:334): arch=i386 syscall=open success=no exit=EACCES a0=8cf3b91c a1=0 a2=1b6 a3=8fc5fee8 items=0 ppid=1905 pid=1972 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_21/bin/java subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: java,mozilla_plugin_t,mtrr_device_t,file,open

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t mtrr_device_t:file open;

audit2allow -R
require {
	type mozilla_plugin_t;
}

#============= mozilla_plugin_t ==============
dev_write_mtrr(mozilla_plugin_t)


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.5-201.fc18.i686.PAE
type:           libreport
Comment 1 Miroslav Grepl 2013-06-18 02:32:40 EDT
Fixed in selinux-policy-3.12.1-53.fc19
Comment 2 Miroslav Grepl 2013-06-18 02:44:01 EDT
What plugin does it cause?

# setsebool unconfined_mozilla_plugin_transition 0

will make this working.

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