Bug 214412 - x264 selinux issues
x264 selinux issues
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2006-11-07 10:03 EST by Matěj Cepl
Modified: 2018-04-11 04:45 EDT (History)
1 user (show)

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-22 10:11:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matěj Cepl 2006-11-07 10:03:13 EST
Description of problem:
The bug was originally filed as

When running ffmpeg it crashes with the following error:

ffmpeg: error while loading shared libraries: /usr/lib/libx264.so.54: cannot
restore segment prot after reloc: Permission denied

This crash occurs as both a normal user and root.


The problem was later identified as a problem with text relocations. As per 
I am filing this bug here as well.

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

How reproducible:
100% with SELinux in enforcing mode

Steps to Reproduce:
1.start ffplay (or anyother application using ffmpeg libraries, e.g., it is
reproducible with mplayer as well) and it crashes with error message:

ffplay: error while loading shared libraries: /usr/lib/libx264.so.54: cannot
restore segment prot after reloc: Permission denied

(the same selinux error is generated by rhythmbox and mplayer or probably any
other application using ffmpeg libraries or gstreamer-ffmpeg).
2. when applying chcon -t textrel_shlib_t /usr/lib/libx264.so.54 everything works
Actual results:
programs using libx264 doesn't work without applying chcon on /usr/lib/libx264.so.54

Expected results:
programs should work ouf of the box

Additional info:
Comment 1 Daniel Walsh 2006-11-07 13:38:25 EST
Fixed in selinux-policy-2.4.3-2
Comment 2 Daniel Walsh 2007-08-22 10:11:40 EDT
Fixed in current release

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