Bug 855841

Summary: SELinux is preventing /usr/lib64/libreoffice/program/soffice.bin from 'create' accesses on the file Neimenovano 1.pdf.
Product: [Fedora] Fedora Reporter: glihaenator
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl, turquino
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:82233e8c006622f28490ef950327900bd6f0fcd53da97ea973f1ed93c93b1d5e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-10 11:50:25 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 glihaenator 2012-09-10 11:24:22 UTC
Additional info:
libreport version: 2.0.13
kernel:         3.5.3-1.fc17.x86_64

description:
:SELinux is preventing /usr/lib64/libreoffice/program/soffice.bin from 'create' accesses on the file Neimenovano 1.pdf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that soffice.bin should be allowed create access on the Neimenovano 1.pdf 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 soffice.bin /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:user_home_t:s0
:Target Objects                Neimenovano 1.pdf [ file ]
:Source                        soffice.bin
:Source Path                   /usr/lib64/libreoffice/program/soffice.bin
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           libreoffice-core-3.5.6.2-2.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-146.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug
:                              29 18:46:34 UTC 2012 x86_64 x86_64
:Alert Count                   20
:First Seen                    2012-09-10 13:04:41 CEST
:Last Seen                     2012-09-10 13:21:48 CEST
:Local ID                      3de35a93-b097-45a8-8fcb-61d4aff56751
:
:Raw Audit Messages
:type=AVC msg=audit(1347276108.687:5121): avc:  denied  { create } for  pid=5906 comm="soffice.bin" name=4E65696D656E6F76616E6F20312E706466 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1347276108.687:5121): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff226ac170 a1=c2 a2=1b6 a3=7fff226ac054 items=0 ppid=5893 pid=5906 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=soffice.bin exe=/usr/lib64/libreoffice/program/soffice.bin subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: soffice.bin,mozilla_plugin_t,user_home_t,file,create
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t user_home_t:file create;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t user_home_t:file create;
:

Comment 1 glihaenator 2012-09-10 11:24:33 UTC
Created attachment 611403 [details]
File: type

Comment 2 glihaenator 2012-09-10 11:24:38 UTC
Created attachment 611404 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-09-10 11:50:25 UTC
You need to either remove the mozplugger package or change the unconfined_mozilla_plugin_transition boolean

yum remove mozplugger

or

setsebool -P unconfined_mozilla_plugin_transition 0

Comment 4 Miroslav Grepl 2013-02-13 09:28:45 UTC
*** Bug 910615 has been marked as a duplicate of this bug. ***