Bug 429620 - Selinux AVC in Open Office Writer when attempting to use frame macros (dlopened libjvm.so)
Summary: Selinux AVC in Open Office Writer when attempting to use frame macros (dlopen...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 8
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-21 22:50 UTC by James Wilkinson
Modified: 2008-01-30 12:13 UTC (History)
1 user (show)

Fixed In Version: selinux-policy-3.0.8-81.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-30 12:13:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James Wilkinson 2008-01-21 22:50:55 UTC
Description of problem:
Selinux AVC in Open Office Writer when attempting to use frame macros

Version-Release number of selected component (if applicable):
openoffice.org-writer-2.3.0-6.7.fc8.x86_64
selinux-policy-targeted-3.0.8-74.fc8.noarch

Steps to Reproduce:
1. Open OpenOffice Writer
2. Insert menu -> Frame
3. Click on Macro tab
  
Actual results:
SELinux AVC denial, click icon to view

In setroubleshoot browser
SELinux is preventing /usr/lib64/openoffice.org/program/swriter.bin from making
the program stack executable.

Additional info:
SELinux is enabled in enforcing mode.

chcon -t unconfined_execmem_exec_t /usr/lib64/openoffice.org/program/swriter.bin
works around this issue, but this should not be necessary.

OpenOffice does not respond well to these denials -- it racks up hundreds of AVC
denials in seconds.

Comment 1 Caolan McNamara 2008-01-22 07:40:42 UTC
Which java is being executed here, i.e. what's selected in 
tools->options->openoffice.org->java

Comment 2 Daniel Walsh 2008-01-22 14:28:33 UTC
This is a labeling problem
 matchpathcon /usr/lib64/openoffice.org/program/swriter.bin
/usr/lib64/openoffice.org/program/swriter.bin	system_u:object_r:lib_t:s0
 matchpathcon /usr/lib/openoffice.org/program/swriter.bin
/usr/lib/openoffice.org/program/swriter.bin
system_u:object_r:unconfined_execmem_exec_t:s0

Fixed in selinux-policy-3.0.8-81.fc8

Comment 3 James Wilkinson 2008-01-30 12:13:33 UTC
Thanks a lot, after updating this works for me.


Note You need to log in before you can comment on or make changes to this bug.