Bug 558049

Summary: SELinux is preventing /opt/real/RealPlayer/realplay.bin from loading /opt/real/RealPlayer/plugins/theorarend.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: dwalsh, gpvprasad, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:ec440ca8409f700edc628c83d40d465104eaf4d9aa9f88e91b041f0a49aadfc2
Fixed In Version: 3.6.32-78.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-02 01:22:45 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-23 10:59:02 UTC
Sammanfattning:

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

Detaljerad beskrivning:

The realplay.bin application attempted to load
/opt/real/RealPlayer/plugins/theorarend.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/theorarend.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/theorarend.so to run correctly, you
can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/real/RealPlayer/plugins/theorarend.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/theorarend.so'"

Lagningskommando:

chcon -t textrel_shlib_t '/opt/real/RealPlayer/plugins/theorarend.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/theorarend.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-69.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                    2
Först sedd                   mån 18 jan 2010 12.33.31
Senast sedd                   lör 23 jan 2010 11.50.20
Lokalt ID                     aac93f55-9e54-4b0e-b8e0-0a96ed5abf67
Radnummer                     

Råa granskningsmeddelanden   

node=(removed) type=AVC msg=audit(1264243820.766:17): avc:  denied  { execmod } for  pid=1508 comm="realplay.bin" path="/opt/real/RealPlayer/plugins/theorarend.so" dev=dm-0 ino=80770 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(1264243820.766:17): arch=40000003 syscall=125 success=no exit=-13 a0=34b8000 a1=47000 a2=5 a3=bfc17070 items=0 ppid=1502 pid=1508 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-69.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-01-25 12:03:57 UTC
Execute the chcon command what setroubleshoot suggests:

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


"/opt/real/RealPlayer/plugins/theorarend.so" is built incorrectly.

Comment 2 Miroslav Grepl 2010-01-25 12:04:54 UTC
*** Bug 558059 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2010-01-28 08:59:00 UTC
Fixed in selinux-policy-3.6.32-78.fc12

Comment 4 Fedora Update System 2010-01-28 09:23:13 UTC
selinux-policy-3.6.32-78.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-78.fc12

Comment 5 Fedora Update System 2010-01-29 03:28:29 UTC
selinux-policy-3.6.32-78.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-1207

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