Bug 874875

Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'read' accesses on the chr_file hpet.
Product: [Fedora] Fedora Reporter: Bernardo Barros <bbarros>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:5bb0a968d4967cb14fe4da0cd5991b6b72e41643ad6e0606a731fcaea4d59ca3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:22:11 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Bernardo Barros 2012-11-09 00:04:45 UTC
Description of problem:
Probably just jackd process with "jackd -c h"

Additional info:
libreport version: 2.0.18
kernel:         3.4.18-1.rt28.1.fc17.ccrma.x86_64.rt

description:
:SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'read' accesses on the chr_file hpet.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that plugin-container should be allowed read access on the hpet chr_file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep plugin-containe /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:clock_device_t:s0
:Target Objects                hpet [ chr_file ]
:Source                        plugin-containe
:Source Path                   /usr/lib64/xulrunner/plugin-container
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           xulrunner-16.0.2-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.4.18-1.rt28.1.fc17.ccrma.x86_64.rt #1 SMP
:                              PREEMPT RT Mon Nov 5 17:04:04 PST 2012 x86_64
:                              x86_64
:Alert Count                   1
:First Seen                    2012-11-08 15:53:35 PST
:Last Seen                     2012-11-08 15:53:35 PST
:Local ID                      73a1ab8c-45f3-4d15-bb9b-0ab03001745f
:
:Raw Audit Messages
:type=AVC msg=audit(1352418815.988:161): avc:  denied  { read } for  pid=10739 comm="plugin-containe" name="hpet" dev="devtmpfs" ino=7594 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:clock_device_t:s0 tclass=chr_file
:
:
:type=AVC msg=audit(1352418815.988:161): avc:  denied  { open } for  pid=10739 comm="plugin-containe" name="hpet" dev="devtmpfs" ino=7594 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:clock_device_t:s0 tclass=chr_file
:
:
:type=SYSCALL msg=audit(1352418815.988:161): arch=x86_64 syscall=open success=yes exit=EISDIR a0=3140840e80 a1=0 a2=7f92462c26e0 a3=1 items=0 ppid=10682 pid=10739 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=plugin-containe exe=/usr/lib64/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: plugin-containe,mozilla_plugin_t,clock_device_t,chr_file,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Bernardo Barros 2012-11-09 00:04:48 UTC
Created attachment 641136 [details]
File: type

Comment 2 Bernardo Barros 2012-11-09 00:04:50 UTC
Created attachment 641137 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-12 09:28:10 UTC
Fixed in selinux-policy-3.10.0-160.fc17.noarch

Comment 4 Fedora Update System 2012-11-21 11:53:25 UTC
selinux-policy-3.10.0-161.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-161.fc17

Comment 5 Fedora Update System 2012-11-22 03:55:25 UTC
Package selinux-policy-3.10.0-161.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-161.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18787/selinux-policy-3.10.0-161.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-12-20 15:22:14 UTC
selinux-policy-3.10.0-161.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.