Bug 1095450

Summary: SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x86_64/jre-abrt/bin/java from 'ioctl' accesses on the blk_file .
Product: [Fedora] Fedora Reporter: Andreas Fischer <andreas.fischer>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7e925e51bf3753ee99545f58cde7dc0ff19739fc56357a17ae0c32c907c96a59
Fixed In Version: selinux-policy-3.12.1-163.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-21 23:30:18 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 Andreas Fischer 2014-05-07 18:10:39 UTC
Description of problem:
Start of hp ILO4-Console
SELinux is preventing /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x86_64/jre-abrt/bin/java from 'ioctl' accesses on the blk_file .

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

If sie das plugin-Paket benutzen möchten
Then sie müssen die SELinux-Überwachung der Firefox-Plugins ausschalten.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

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

If sie denken, dass es java standardmässig erlaubt sein sollte, ioctl Zugriff auf  blk_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# 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:removable_device_t:s0
Target Objects                 [ blk_file ]
Source                        java
Source Path                   /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.f
                              c20.x86_64/jre-abrt/bin/java
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           java-1.7.0-openjdk-
                              headless-1.7.0.60-2.4.7.0.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-158.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.14.2-200.fc20.x86_64 #1 SMP Mon
                              Apr 28 14:40:57 UTC 2014 x86_64 x86_64
Alert Count                   23
First Seen                    2014-04-11 20:09:17 CEST
Last Seen                     2014-05-07 20:08:49 CEST
Local ID                      051aa841-0e51-43b9-ac14-0690d253de3c

Raw Audit Messages
type=AVC msg=audit(1399486129.221:928): avc:  denied  { ioctl } for  pid=27717 comm="java" path="/dev/sr0" dev="devtmpfs" ino=1175 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:removable_device_t:s0 tclass=blk_file


type=SYSCALL msg=audit(1399486129.221:928): arch=x86_64 syscall=ioctl success=no exit=ENOTTY a0=3a a1=8010020f a2=7fe49844c790 a3=7fe49844c550 items=0 ppid=19716 pid=27717 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=java exe=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.7.0.fc20.x86_64/jre-abrt/bin/java subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: java,mozilla_plugin_t,removable_device_t,blk_file,ioctl

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.2-200.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-05-08 20:59:37 UTC
Is this a java app that is tryint to use a cdrom?

Comment 2 Daniel Walsh 2014-05-08 21:04:23 UTC
5e3fd777ffb3591ccfdae590adeb4e72f7a3d49d fixes this in git.

Comment 3 Fedora Update System 2014-05-13 13:22:13 UTC
selinux-policy-3.12.1-163.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2014-6084/selinux-policy-3.12.1-163.fc20

Comment 4 Fedora Update System 2014-05-14 23:53:02 UTC
Package selinux-policy-3.12.1-163.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-163.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-6084/selinux-policy-3.12.1-163.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-05-21 23:30:18 UTC
selinux-policy-3.12.1-163.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.