Bug 890862

Summary: SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from 'read' accesses on the fifo_file /home/smoge/.lyx/lyxpipe.in.
Product: [Fedora] Fedora Reporter: Bernardo Barros <bbarros>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE 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:085e8fbc114210da82527ec054ec4ed35d256837af2a8d276c3b3415e72fbc3d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-07 03:59:08 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-12-30 18:56:56 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.4.21-1.rt32.1.fc17.ccrma.x86_64.rt

description:
:SELinux is preventing /usr/lib64/nspluginwrapper/plugin-config from 'read' accesses on the fifo_file /home/smoge/.lyx/lyxpipe.in.
:
:*****  Plugin leaks (86.2 confidence) suggests  ******************************
:
:If you want to ignore plugin-config trying to read access the lyxpipe.in fifo_file, because you believe it should not need this access.
:Then you should report this as a bug.  
:You can generate a local policy module to dontaudit this access.
:Do
:# grep /usr/lib64/nspluginwrapper/plugin-config /var/log/audit/audit.log | audit2allow -D -M mypol
:# semodule -i mypol.pp
:
:*****  Plugin catchall (14.7 confidence) suggests  ***************************
:
:If you believe that plugin-config should be allowed read access on the lyxpipe.in fifo_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-config /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_config_t:
:                              s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /home/smoge/.lyx/lyxpipe.in [ fifo_file ]
:Source                        plugin-config
:Source Path                   /usr/lib64/nspluginwrapper/plugin-config
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           nspluginwrapper-1.4.4-12.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.4.21-1.rt32.1.fc17.ccrma.x86_64.rt #1 SMP
:                              PREEMPT RT Fri Dec 7 10:02:23 PST 2012 x86_64
:                              x86_64
:Alert Count                   3
:First Seen                    2012-12-30 14:52:08 BRT
:Last Seen                     2012-12-30 15:04:24 BRT
:Local ID                      86370037-4199-424e-9ec6-4c59b9adf187
:
:Raw Audit Messages
:type=AVC msg=audit(1356890664.832:111): avc:  denied  { read } for  pid=4746 comm="plugin-config" path="/home/smoge/.lyx/lyxpipe.in" dev="sda5" ino=10627344 scontext=unconfined_u:unconfined_r:mozilla_plugin_config_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=fifo_file
:
:
:type=AVC msg=audit(1356890664.832:111): avc:  denied  { write } for  pid=4746 comm="plugin-config" path="/home/smoge/.lyx/lyxpipe.out" dev="sda5" ino=10627380 scontext=unconfined_u:unconfined_r:mozilla_plugin_config_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=fifo_file
:
:
:type=SYSCALL msg=audit(1356890664.832:111): arch=x86_64 syscall=execve success=yes exit=0 a0=1df7440 a1=1df7380 a2=1df6a80 a3=18 items=0 ppid=4744 pid=4746 auid=1000 uid=1000 gid=1000 euid=0 suid=0 fsuid=0 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=plugin-config exe=/usr/lib64/nspluginwrapper/plugin-config subj=unconfined_u:unconfined_r:mozilla_plugin_config_t:s0-s0:c0.c1023 key=(null)
:
:Hash: plugin-config,mozilla_plugin_config_t,user_home_t,fifo_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-12-30 18:57:03 UTC
Created attachment 670484 [details]
File: type

Comment 2 Bernardo Barros 2012-12-30 18:57:07 UTC
Created attachment 670485 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2013-01-02 12:29:43 UTC
We will need to add a label for /home/smoge/.lyx 

Probably

mozilla_home_t

and add it to 

mozilla_filetrans_home_content

Comment 4 Miroslav Grepl 2013-01-02 12:36:02 UTC
I added fixes.

Comment 5 Fedora Update System 2013-01-03 13:07:03 UTC
selinux-policy-3.10.0-166.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17

Comment 6 Fedora Update System 2013-01-05 06:39:20 UTC
Package selinux-policy-3.10.0-166.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-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-01-07 03:59:09 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.