vlc x86 libs requires text relocation.

Jan-Frode Myklebust janfrode at tanso.net
Fri Apr 20 10:53:39 UTC 2007


On 2007-04-17, kwizart <kwizart at gmail.com> wrote:
>
> This affect vlc for Fedora release 5, 6 and devel only for x86 (not ppc
> or x86_64)
>
> from https://bugzilla.livna.org/show_bug.cgi?id=1404
> - ----
> SELinux is preventing /usr/bin/vlc from loading
> /usr/lib/vlc/codec/libdmo_plugin.so which requires text relocation.
>
> SELinux is preventing /usr/bin/vlc from loading
> /usr/lib/vlc/codec/librealaudio_plugin.so which requires text relocation.
>
> I'm not sure if this can be fixed in the vlc package or if it would need
> to be
> fixed in the selinux policy package.

It can be fixed in the vlc package's RPM %post section by running:

	# Add new labeling rules for libraries requiring text relocation:
	/usr/sbin/semanage fcontext -a -t textrel_shlib_t  /usr/lib/vlc/codec/libdmo_plugin.so
	/usr/sbin/semanage fcontext -a -t textrel_shlib_t /usr/lib/vlc/codec/librealaudio_plugin.so
	# Set correct SELinux security contexts:
	restorecon /usr/lib/vlc/codec/libdmo_plugin.so /usr/lib/vlc/codec/librealaudio_plugin.so

The semanage-commands will add these rules to 
/etc/selinux/targeted/contexts/files/file_contexts.local.



   -jf




More information about the selinux mailing list