Red Hat Bugzilla – Bug 326081
selinux prevents vmplayer to load libview.so.2
Last modified: 2008-01-30 14:06:41 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko)
Description of problem:
I tried to execute the vmplayer. It gave the following error:
"/usr/lib/vmware/bin/vmplayer: error while loading shared libraries:
libview.so.2: cannot open shared object file: No such file or directory"
After that I deactivated SELinux, tried again and it worked. I didn't change
Version-Release number of selected component (if applicable):
Steps to Reproduce:
(0. Activate SELinux)
1. Download the VMware-player-2.0.1-55017.i386.rpm
2. Install it: "yum localinstall VMware-player-2.0.1-55017.i386.rpm" (maybe
you have to deactivate "gpgcheck")
3. Run the configurator: "/usr/bin/vmware-config.pl" and use default options
4. Run the player: "vmplayer"
It didn't run and gave the following error msg instead:
/usr/lib/vmware/bin/vmplayer: error while loading shared libraries:
libview.so.2: cannot open shared object file: No such file or directory
The vmplayer should have run.
Did you see any avc messages in /var/log/audit/audit.log or /var/log/messages?
You can probably
chcon -t textrel_shlib_t PATHTOSHLIBS
To get it to work with SELinux.
This is caused because vmware has built their libraries incorrectly. Please
attach the AVC messages and I will fix the labeling.
Created attachment 222501 [details]
"chcon -t textrel_shlib_t /usr/lib/vmware/lib/*" didn't change anything.
YOu can turn off execstack protection with
setsebool -P allow_execstack=1
Ok, it works. But it's not the best thing to do, is it?
Actually a better fix would be to
chcon -t vmware_exec_t /usr/lib/vmware/bin/vmplayer
Fixed in selinux-policy-2.6.4-49
Bulk closing a old selinux policy bugs that were in the modified state. If the
bug is still not fixed. Please reopen.