Bug 678695

Summary: SELinux is preventing /opt/libreoffice/program/soffice.bin from using the 'execstack' accesses on a process.
Product: [Fedora] Fedora Reporter: mclark2145
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:2c383fece3e3a0c741479c3238e920df2399f9943c543e554e0f144939be6be4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-19 03:20:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description mclark2145 2011-02-18 21:50:56 UTC
SELinux is preventing /opt/libreoffice/program/soffice.bin from using the 'execstack' accesses on a process.

*****  Plugin allow_execstack (53.1 confidence) suggests  ********************

If you believe that 
None
should not require execstack
Then you should clear the execstack flag and see if /opt/libreoffice/program/soffice.bin works correctly.
Report this as a bug on None.
You can clear the exestack flag by executing:
Do
execstack -c None

*****  Plugin catchall_boolean (42.6 confidence) suggests  *******************

If you want to allow unconfined executables to make their stack executable.  This should never, ever be necessary. Probably indicates a badly coded executable, but could indicate an attack. This executable should be reported in bugzilla
Then you must tell SELinux about this by enabling the 'allow_execstack' boolean.
Do
setsebool -P allow_execstack 1

*****  Plugin catchall (5.76 confidence) suggests  ***************************

If you believe that soffice.bin should be allowed execstack access on processes labeled unconfined_t 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:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                Unknown [ process ]
Source                        soffice.bin
Source Path                   /opt/libreoffice/program/soffice.bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           libreoffice3-3.3.0-6
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-29.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.i686 #1
                              SMP Mon Feb 7 07:04:18 UTC 2011 i686 i686
Alert Count                   19
First Seen                    Fri 18 Feb 2011 01:09:38 PM EST
Last Seen                     Fri 18 Feb 2011 01:40:05 PM EST
Local ID                      a050a799-42c0-45bc-974b-3b1bb4458ca1

Raw Audit Messages
type=AVC msg=audit(1298054405.381:108): avc:  denied  { execstack } for  pid=29228 comm="soffice.bin" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process


type=SYSCALL msg=audit(1298054405.381:108): arch=i386 syscall=mprotect success=no exit=EACCES a0=bfd6f000 a1=1000 a2=1000007 a3=bfd6c160 items=0 ppid=29218 pid=29228 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=soffice.bin exe=/opt/libreoffice/program/soffice.bin subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)

Hash: soffice.bin,unconfined_t,unconfined_t,process,execstack

audit2allow

#============= unconfined_t ==============
#!!!! This avc is allowed in the current policy

allow unconfined_t self:process execstack;

audit2allow -R

#============= unconfined_t ==============
#!!!! This avc is allowed in the current policy

allow unconfined_t self:process execstack;

Comment 1 Daniel Walsh 2011-02-19 03:20:47 UTC
Why aren't you using the office that is shipped with F14?  The one you downloaded must be having a problem, you can either label it execmem_exec_t or turn on the allow_execstack boolean.

# setsebool -P allow_execstack 1


You should contact libraoffice to report the problem.