Bug 190657

Summary: selinux-policy-targeted breaks many third party applications
Product: [Fedora] Fedora Reporter: David Mohring <heretic>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 5CC: dwalsh, dyek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-28 20:05:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description David Mohring 2006-05-04 09:41:58 UTC
Description of problem:

selinux-policy-targeted break Adobe's reader, Real's Realplayer and plenty of
other third party applications. You need to use "chcon -t textrel_shlib_t " on
the said application's dynamic modules to get them to run.

Version-Release number of selected component (if applicable):

selinux-policy-2.2.34-3.fc5

How reproducible:

Adobe fails all the time. Realplayer fails on vorbis and video formats.

Steps to Reproduce:
1. Install Application's RPM 
2. Run application from command line
3. "Permission denied"
  
Actual results:

acroread
/usr/local/Adobe/Acrobat7.0/Reader/intellinux/bin/acroread: error while loading
shared libraries: /usr/local/Adobe/Acrobat7.0/Reader/intellinux/lib/libJP2K.so:
cannot restore segment prot after reloc: Permission denied

Expected results:

Should run.

Additional info:

-- /var/log/messages
May  4 20:52:56 heretic kernel: audit(1146732776.760:603): avc:  denied  {
execmod } for  pid=6174 comm="acroread" name="libJP2K.so" dev=dm-0 ino=721816
scontext=user_u:system_r:unconfined_t:s0 tcontext=system_u:object_r:lib_t:s0
tclass=file
--- 

Workaround: As root run
> chcon -t textrel_shlib_t /usr/local/Adobe/Acrobat7.0/Reader/intellinux/lib/lib*

Adobe will work fine.

If the targeted policy  { execmod } is going to enforce this by default then you
need to get in contact with Adobe/Real and other developers and package makers
to apply "chcon -t textrel_shlib_t " in the postinst RPM scripts.


To get Realplayer 10 working, as root ..
>chcon -t textrel_shlib_t /usr/local/RealPlayer/codecs/*.so
>chcon -t textrel_shlib_t /usr/local/RealPlayer/codecs/*.so.*
>chcon -t textrel_shlib_t /usr/local/RealPlayer/plugins/*.so

Comment 2 Daniel Walsh 2006-05-09 17:18:21 UTC
fixed in selinux-policy-2.2.38-1.FC5

Comment 3 Daniel Walsh 2007-03-28 20:05:37 UTC
Closing bugs