| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-30-2006, 06:49 AM
|
#1
|
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Rep:
|
FC5 SELinux question
Hi,
I am trying to install Macromedia Flashplayer in my FC5 box.
The macromedia files are in /usr/lib/firefox-1.5.0.1/plugins but about  lugins in browser only shows the Default null plugins and Helix DNA Plugin.
I am suspected the culprid is SELinux.
Code:
# ls -Z /usr/lib/firefox-1.5.0.1/plugins/
-rwxr-xr-x root root user_u:object_r:lib_t flashplayer.xpt
-rwxr-xr-x root root user_u:object_r:lib_t libflashplayer.so
-rwxr-xr-x root root system_u:object_r:textrel_shlib_t libnullplugin.so
-rwxr-xr-x root root system_u:object_r:textrel_shlib_t libunixprintplugin.so
#
How do I change the SELinux attributes (is that the correct term?) to match with libnullplugin.so attributes ?
Or I am o wrong and this is not the problem at all ?
thanks,
Last edited by marozsas; 03-30-2006 at 06:52 AM.
|
|
|
|
03-30-2006, 09:50 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Original Poster
Rep:
|
Solved !
It is trivial after I learned the chcon command:
Code:
[root@gold ~]# chcon system_u:object_r:lib_t flashplayer.xpt
[root@gold ~]# chcon system_u:object_r:textrel_shlib_t libflashplayer.so
[root@gold ~]#
This don't mean I understand what I did  I just apply the same SELinux properties from a working plugin to another one.
|
|
|
|
03-30-2006, 01:04 PM
|
#3
|
|
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Rep:
|
FWIW, Macromedia have approved a third-party yum repository for Flash on Fedora Core 5:
http://macromedia.mplug.org/
The packages from there will install the plugin with the correct SELinux labels.
|
|
|
|
04-06-2006, 04:13 PM
|
#4
|
|
Member
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250
Rep:
|
I had the same problem.
I tried using the recommended repository, but it did not install with the correct SELinux labels.
I tried what marozsas suggested and it works perfectly.
Just wanted to report back as to what worked for me and what didn't, in case someone else needs has a similar problem.
|
|
|
|
04-18-2006, 01:32 AM
|
#5
|
|
LQ Newbie
Registered: Apr 2006
Distribution: Ubuntu Breezy 5.10
Posts: 7
Rep:
|
i had the same problem wooo hoo thanks thats got it working cool
|
|
|
|
04-18-2006, 11:59 AM
|
#6
|
|
LQ Newbie
Registered: Mar 2005
Posts: 2
Rep:
|
Another way around this is to simply turn off SELinux off when installing flash. I turned off SELinux and then just allowed Firefox to download and install its plugin. It worked fine.
|
|
|
|
04-19-2006, 03:49 AM
|
#7
|
|
LQ Newbie
Registered: Apr 2006
Distribution: Ubuntu Breezy 5.10
Posts: 7
Rep:
|
bugger me i have the fedora 5 stop booting again this morning so yep it sure does work if ya turn off firewall for the install
good stuff
|
|
|
|
04-26-2006, 11:43 PM
|
#8
|
|
Member
Registered: Sep 2005
Location: Washington state
Distribution: fedora core 9 i386 - x86
Posts: 44
Rep:
|
Fedora 5 and Flashplayer
Quote:
|
Originally Posted by marozsas
Solved !
It is trivial after I learned the chcon command:
Code:
[root@gold ~]# chcon system_u:object_r:lib_t flashplayer.xpt
[root@gold ~]# chcon system_u:object_r:textrel_shlib_t libflashplayer.so
[root@gold ~]#
This don't mean I understand what I did  I just apply the same SELinux properties from a working plugin to another one.
|
It didn't work for me. All I got was:
chcon: libflashplayer.so: No such file or directory
chcon: flashplayer.xpt: No such file or directory
So I must be doing something wrong, but I don't know what.
Well, I did want to lean linux, but I can't even find a darn book on bash, even.
|
|
|
|
04-27-2006, 06:07 AM
|
#9
|
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Original Poster
Rep:
|
Quote:
|
Originally Posted by hferretluv
It didn't work for me. All I got was:
chcon: libflashplayer.so: No such file or directory
chcon: flashplayer.xpt: No such file or directory
|
You need to specify the full path or to be in the directory where the plugins was installed.
Code:
[root@gold /]# cd /usr/lib/mozilla/plugins/
[root@gold plugins]# ls flashplayer.xpt
flashplayer.xpt
[root@gold plugins]# chcon system_u:object_r:lib_t flashplayer.xpt
or
[root@gold /]# chcon system_u:object_r:lib_t /usr/lib/mozilla/plugins/flashplayer.xpt
Check the right path for your plugins. It is the same path the flash installer asked you.
Last edited by marozsas; 04-27-2006 at 06:09 AM.
|
|
|
|
07-18-2006, 07:01 AM
|
#10
|
|
LQ Newbie
Registered: Dec 2005
Posts: 29
Rep:
|
u saved me a load of hard work mate many thanks it solved my problem on fedora core 5 amazing post
|
|
|
|
09-30-2006, 04:26 AM
|
#11
|
|
Member
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 219
Rep:
|
Quote:
|
Originally Posted by erdichia
Another way around this is to simply turn off SELinux off when installing flash. I turned off SELinux and then just allowed Firefox to download and install its plugin. It worked fine.
|
Can anyone tell me how to turn off SElinux ? I am a newbie ! 
|
|
|
|
09-30-2006, 05:47 AM
|
#12
|
|
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Rep:
|
wlaw:
Turning off SELinux is usually the wrong thing to do: you can modify how it works with the system-config-securitylevel: System > Administration > Security Level and Firewall.
You can also disable SELinux with this, if it's necessary to do so.
FWIW, it's generally best to post new questions to new threads, as this makes the question more visible.
|
|
|
|
10-15-2006, 08:30 PM
|
#13
|
|
LQ Newbie
Registered: Apr 2006
Posts: 10
Rep:
|
Worked For Me great post
I was getting a file accessed denied on an apache directory. The following :chcon -t httpd_sys_content_t
Worked great.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:48 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|