Bug 560294

Summary: SELinux is preventing /opt/real/RealPlayer/realplay.bin from loading /opt/real/RealPlayer/plugins/swfrender.so which requires text relocation.
Product: [Fedora] Fedora Reporter: Morgan Olausson <ol.morgan>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: duchu87, dwalsh, jcmj, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c636c6be1bb04984874ff7c9e8ce41a38eede26b53b4fd8d24535d088c0cb0eb
Fixed In Version: 3.6.32-84.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-11 14:41:41 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:

Description Morgan Olausson 2010-01-30 20:04:20 UTC
Sammanfattning:

SELinux is preventing /opt/real/RealPlayer/realplay.bin from loading
/opt/real/RealPlayer/plugins/swfrender.so which requires text relocation.

Detaljerad beskrivning:

The realplay.bin application attempted to load
/opt/real/RealPlayer/plugins/swfrender.so which requires text relocation. This
is a potential security problem. Most libraries do not need this permission.
Libraries are sometimes coded incorrectly and request this permission. The
SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/opt/real/RealPlayer/plugins/swfrender.so to use relocation as a workaround,
until the library is fixed. Please file a bug report.

Att tillåta åtkomst:

If you trust /opt/real/RealPlayer/plugins/swfrender.so to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/real/RealPlayer/plugins/swfrender.so'" You must also change the default
file context files on the system in order to preserve them even on a full
relabel. "semanage fcontext -a -t textrel_shlib_t
'/opt/real/RealPlayer/plugins/swfrender.so'"

Lagningskommando:

chcon -t textrel_shlib_t '/opt/real/RealPlayer/plugins/swfrender.so'

Ytterligare information:

Källkontext                  unconfined_u:unconfined_r:unconfined_execmem_t:s0-
                              s0:c0.c1023
Målkontext                   system_u:object_r:lib_t:s0
Målobjekt                    /opt/real/RealPlayer/plugins/swfrender.so [ file ]
Källa                        realplay.bin
Källsökväg                 /opt/real/RealPlayer/realplay.bin
Port                          <Okänd>
Värd                         (removed)
Käll-RPM-paket               RealPlayer-11.0.2.1744-20091006
Mål-RPM-paket                RealPlayer-11.0.2.1744-20091006
Policy-RPM                    selinux-policy-3.6.32-78.fc12
SELinux aktiverat             True
Policytyp                     targeted
Verkställande läge          Enforcing
Insticksmodulnamn             allow_execmod
Värdnamn                     (removed)
Plattform                     Linux (removed)
                              2.6.31.12-174.2.3.fc12.i686.PAE #1 SMP Mon Jan 18
                              20:06:44 UTC 2010 i686 i686
Antal larm                    6
Först sedd                   mån 18 jan 2010 12.33.29
Senast sedd                   lör 30 jan 2010 20.50.36
Lokalt ID                     083d3363-1a67-4469-93f5-4952fa02a261
Radnummer                     

Råa granskningsmeddelanden   

node=(removed) type=AVC msg=audit(1264881036.933:18): avc:  denied  { execmod } for  pid=1546 comm="realplay.bin" path="/opt/real/RealPlayer/plugins/swfrender.so" dev=dm-0 ino=80769 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1264881036.933:18): arch=40000003 syscall=125 success=no exit=-13 a0=1a0e000 a1=8c000 a2=5 a3=bf8cfc30 items=0 ppid=1540 pid=1546 auid=501 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm="realplay.bin" exe="/opt/real/RealPlayer/realplay.bin" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-78.fc12,allow_execmod,realplay.bin,unconfined_execmem_t,lib_t,file,execmod
audit2allow suggests:

#============= unconfined_execmem_t ==============
#!!!! This avc can be allowed using the boolean 'allow_execmod'

allow unconfined_execmem_t lib_t:file execmod;

Comment 1 Miroslav Grepl 2010-02-01 11:57:11 UTC
Dan,
looks like we should add labeling for RealPlayer plugins.

/opt/real/RealPlayer/plugins/.*\.so(\.[^/]*)*  -- gen_context(system_u:object_r:textrel_shlib_t,s0)

Comment 2 Daniel Walsh 2010-02-01 20:54:03 UTC
Yes

Comment 3 Miroslav Grepl 2010-02-02 09:45:59 UTC
Fixed in selinux-policy-3.6.32-81.fc12

Comment 4 Fedora Update System 2010-02-03 23:20:11 UTC
selinux-policy-3.6.32-82.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-82.fc12

Comment 5 Fedora Update System 2010-02-05 01:44:13 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1492

Comment 6 Fedora Update System 2010-02-11 14:36:55 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.