Bug 452733 - Incorrect file labels for RealPlayer and HelixPlayer
Incorrect file labels for RealPlayer and HelixPlayer
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
9
All Linux
low Severity low
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-24 13:46 EDT by Carl Roth
Modified: 2008-11-17 17:04 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-11-17 17:04:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Carl Roth 2008-06-24 13:46:32 EDT
Description of problem:

RealPlayer and HelixPlayer don't work in selinux enforcing mode because its
binaries and libraries are mislabeled under the current policy.

Also, the labels that are there in the targeted policy appear to have regex bugs
that will prevent them from being applied.

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

HelixPlayer-1.1.0.4327-20080518.amd64
RealPlayer-10.1.0.4326-20080518.amd64
selinux-policy-targeted-3.3.1-64.fc9.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

The RPMs available from the RealPlayer and HelixPlayer download sites install by
default into /opt; this should be reflected in the default selinux policy.

AFAIK the correct labels are as follows:

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

/opt/real/(.*/)?realplay[.]bin --
gen_context(system_u:object_r:unconfined_execmem_exec_t,s0)

The /opt/helix/HelixPlayer/hxplay.bin may also need a label too, though I
haven't tested this.

The labels that *do* exist in the policy have a regex bug:

/usr/(.*/)?/RealPlayer/.+\.so(\.[^/]*)*	--	system_u:object_r:textrel_shlib_t:s0
/usr/(.*/)?/HelixPlayer/.+\.so(\.[^/]*)*	--	system_u:object_r:textrel_shlib_t:s0

If you look carefully (and test it with matchpathcon) you can see that this
won't match '/usr/lib/RealPlayer/foo.so' like it should.  A corrected regex would be

/usr/(.*/)?RealPlayer/.+\.so(\.[^/]*)*
Comment 1 Daniel Walsh 2008-06-25 07:14:55 EDT
Fixed in selinux-policy-3.3.1-72.fc9.noarch
Comment 2 Daniel Walsh 2008-11-17 17:04:47 EST
Closing all bugs that have been in modified for over a month.  Please reopen if the bug is not actually fixed.

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