Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd September 2011, 09:28 PM
scalerman Offline
Registered User
 
Join Date: Nov 2009
Posts: 13
linuxfedorafirefox
Google Chrome

I have been without Google Chrome for a few days now since an update. Got another update but it didn't solve the problem and I miss my Google Chrome! Anyway SELinux is blocking it and I can't figure out what I need to do to make it work. Sorry but I need a very, hold my hand and step me through it. Here is the SELinux alert. Thanks in advance for the help.
SELinux is preventing /opt/google/chrome/chrome from execmod access on the file /opt/google/chrome/chrome.

***** Plugin allow_execmod (91.4 confidence) suggests **********************

If you want to allow chrome to have execmod access on the chrome file
Then you need to change the label on '/opt/google/chrome/chrome'
Do
# semanage fcontext -a -t textrel_shlib_t '/opt/google/chrome/chrome'
# restorecon -v '/opt/google/chrome/chrome'

***** Plugin catchall (9.59 confidence) suggests ***************************

If you believe that chrome should be allowed execmod access on the chrome file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep chrome /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c
0.c1023
Target Context system_u:object_r:execmem_exec_t:s0
Target Objects /opt/google/chrome/chrome [ file ]
Source chrome
Source Path /opt/google/chrome/chrome
Port <Unknown>
Host localhost.localdomain
Source RPM Packages google-chrome-stable-14.0.835.186-101821
Target RPM Packages google-chrome-stable-14.0.835.186-101821
Policy RPM selinux-policy-3.9.7-44.fc14
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name localhost.localdomain
Platform Linux localhost.localdomain 2.6.35.14-96.fc14.i686
#1 SMP Thu Sep 1 12:49:38 UTC 2011 i686 i686
Alert Count 2
First Seen Thu 22 Sep 2011 10:48:43 AM PDT
Last Seen Thu 22 Sep 2011 01:20:27 PM PDT
Local ID af7cea1a-8065-4d23-bb98-816dac7e3c31

Raw Audit Messages
type=AVC msg=audit(1316722827.997:23562): avc: denied { execmod } for pid=3941 comm="chrome" path="/opt/google/chrome/chrome" dev=dm-0 ino=1456521 scontext=unconfined_u:unconfined_r:chrome_sandbox_ t:s0-s0:c0.c1023 tcontext=system_u:object_r:execmem_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1316722827.997:23562): arch=i386 syscall=mprotect success=no exit=EACCES a0=b463b000 a1=31fd000 a2=5 a3=bfbccad0 items=0 ppid=0 pid=3941 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=chrome exe=/opt/google/chrome/chrome subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)

Hash: chrome,chrome_sandbox_t,execmem_exec_t,file,execmo d

audit2allow

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t execmem_exec_t:file execmod;

audit2allow -R

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t execmem_exec_t:file execmod;
Reply With Quote
  #2  
Old 23rd September 2011, 02:34 AM
phalik Offline
Registered User
 
Join Date: Sep 2011
Posts: 1
linuxfirefox
Re: Google Chrome

I'm having the same issue myself
Reply With Quote
  #3  
Old 23rd September 2011, 03:04 AM
SomeDamFool's Avatar
SomeDamFool Offline
Registered User
 
Join Date: Sep 2006
Location: Groom Lake Nevada
Posts: 478
linuxfirefox
Re: Google Chrome

Code:
# grep chrome /var/log/audit/audit.log | audit2allow -M mypol
Then:
Code:
# semodule -i mypol.pp
Got Chrome working on my laptop, but not my desktop. You can launch it without the sandbox (which is the problem) by making a shortcut or menu entry with the command: /opt/google/chrome/google-chrome --no-sandbox
__________________
su -
I am root the great and powerful
Pay no attention to the man behind the curtain
Reply With Quote
  #4  
Old 23rd September 2011, 03:30 AM
scalerman Offline
Registered User
 
Join Date: Nov 2009
Posts: 13
linuxfedorafirefox
Re: Google Chrome

Sorry but I need a very, hold my hand and step me through it. Thanks Somedamfool but I will need more info than that. Easy for you Linux people but I struggle with it. Do I go to root and just cut and paste your code? Or do I need to be in a particular folder or text editer? Thanks again.
Reply With Quote
  #5  
Old 23rd September 2011, 04:00 AM
GoinEasy9's Avatar
GoinEasy9 Offline
Registered User
 
Join Date: May 2009
Location: Manorville, New York, USA
Posts: 1,577
linuxfirefox
Re: Google Chrome

There are 2 Bugzilla's I know of working on this problem. I've solved it on most of my installs by following the hints in the AVC error details, but, I'm still having the problem on one laptop.

https://bugzilla.redhat.com/show_bug.cgi?id=730179
https://bugzilla.redhat.com/show_bug.cgi?id=735786
__________________
Registered Linux User #348347
Have you been seduced by siduction? http://siduction.org/index.php
Running Fedora 17/18, siduction and openSUSE Tumbleweed with KDE
Reply With Quote
  #6  
Old 23rd September 2011, 04:20 AM
scalerman Offline
Registered User
 
Join Date: Nov 2009
Posts: 13
linuxfedorafirefox
Re: Google Chrome

Thanks Goineasy9. I will wait for the fix rather than a workaround. Just checking to see if I was the only one having a problem. We can probably close this thread. I find Chrome much faster that Firefox. I will leave it to the qualified people. And you are appreciated!
Reply With Quote
  #7  
Old 23rd September 2011, 04:50 AM
JamesNZ's Avatar
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 16
Posts: 889
windows_7chrome
Re: Google Chrome

Quote:
Originally Posted by scalerman
Sorry but I need a very, hold my hand and step me through it. Thanks Somedamfool but I will need more info than that. Easy for you Linux people but I struggle with it. Do I go to root and just cut and paste your code? Or do I need to be in a particular folder or text editer? Thanks again.
I'll post this anyway in case someone else comes across it who needs help

The instructions given are preceeded by the # symbol, which means that you need to be root to execute them (normal user symbol is '$'). Open a terminal, type in
Code:
su -
<root password>
Your user symbol should now be a # (which means you are root). Now run the commands SomeDamFool gave you (which is also in the SELinux message).
Code:
# grep chrome /var/log/audit/audit.log | audit2allow -M mypol     <Enter/Return key>
# semodule -i mypol.pp                                            <Enter/Return key>
Looking at the SELinux alert I noticed that there are two alerts, so if above one doesn't work then do the other one as well. Note that for every SELinux alert there should be a workaround included in the message details.

These ones also have the # symbol so they must be done as root too.
Code:
# semanage fcontext -a -t textrel_shlib_t '/opt/google/chrome/chrome     <Enter/Return key>
# restorecon -v '/opt/google/chrome/chrome                               <Enter/Return key>
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #8  
Old 23rd September 2011, 05:47 AM
scalerman Offline
Registered User
 
Join Date: Nov 2009
Posts: 13
linuxfedorafirefox
Re: Google Chrome

Thank you. It is working again. I needed both parts to get it going. One thing some of us newbies need is the "enter" at the end of the line so we know to to it. Other thing I find is that the $ or # sign at the beginning (for this dumbkoff, I paste it all in) means a lot to you very helpful people but confuses things for me! My learning curve. See if I can remember it! Thanks James for the "hold my hand and get me through it" and the other posters. Will I have to do it again after a reboot? I find Chrome much faster than Firefox, plus it has all my bookmarks! I now have them in an html file! Really appreciate the help. So much better than the, "try to find the right department MS"!
Reply With Quote
  #9  
Old 23rd September 2011, 10:24 PM
JamesNZ's Avatar
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 16
Posts: 889
windows_7chrome
Re: Google Chrome

Quote:
Originally Posted by scalerman
Will I have to do it again after a reboot?
Don't think so, the changes would have to be reversed for that to happen.
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #10  
Old 24th September 2011, 07:54 PM
ventsyv Offline
Registered User
 
Join Date: Sep 2011
Posts: 6
linuxfirefox
Re: Google Chrome

Quote:
Originally Posted by JamesNZ View Post
I'll post this anyway in case someone else comes across it who needs help

The instructions given are preceeded by the # symbol, which means that you need to be root to execute them (normal user symbol is '$'). Open a terminal, type in
Code:
su -
<root password>
Your user symbol should now be a # (which means you are root). Now run the commands SomeDamFool gave you (which is also in the SELinux message).
Code:
# grep chrome /var/log/audit/audit.log | audit2allow -M mypol     <Enter/Return key>
# semodule -i mypol.pp                                            <Enter/Return key>
Looking at the SELinux alert I noticed that there are two alerts, so if above one doesn't work then do the other one as well. Note that for every SELinux alert there should be a workaround included in the message details.

These ones also have the # symbol so they must be done as root too.
Code:
# semanage fcontext -a -t textrel_shlib_t '/opt/google/chrome/chrome     <Enter/Return key>
# restorecon -v '/opt/google/chrome/chrome                               <Enter/Return key>
Running semodule makes my console hang? Any suggestions? Fedora 15 here (no updates)
Reply With Quote
  #11  
Old 4th October 2011, 06:08 AM
Jeff72 Offline
Registered User
 
Join Date: Nov 2008
Posts: 164
linuxfirefox
Re: Google Chrome

The selinux helper tells you how to force selinux to allow Google Chrome to run.

At command prompt, switch to the root user and then run the following:

Code:
semanage fcontext -a -t textrel_shlib_t '/opt/google/chrome/chrome'
restorecon -v '/opt/google/chrome/chrome'
grep chrome-sandbox /var/log/audit/audit.log | audit2allow -M mypol
semodule -i mypol.pp
I did the above and Google Chrome runs now for me.

---------- Post added at 12:08 AM ---------- Previous post was at 12:05 AM ----------

Quote:
Originally Posted by ventsyv View Post
Running semodule makes my console hang? Any suggestions? Fedora 15 here (no updates)
I would suggest updating your Fedora 15 system.

Also, the semodule command takes awhile to run. Give it time to finish. Should be less than 5 minutes.
Reply With Quote
  #12  
Old 6th October 2011, 06:02 AM
pottzie Offline
Registered User
 
Join Date: Mar 2010
Location: Elkhart, Indiana
Posts: 199
linuxfirefox
Re: Google Chrome

I'm running FC#14 and just ran "yum update." Chrome was part of the update, now SELinux won't let Chrome run.
I tried copying the code from jeff72, and got hosed when I entered the third line:
Code:
[root@kickass larry]# grep chrome-sandbox /var/log/audit/audit.log | audit2allow -M mypol
compilation failed:
mypol.te:6:ERROR 'syntax error' at token '' on line 6:


/usr/bin/checkmodule:  error(s) encountered while parsing configuration
/usr/bin/checkmodule:  loading policy configuration from mypol.te
[root@kickass larry]# semodule -i mypol.pp
semodule:  Failed on mypol.pp!
Reply With Quote
  #13  
Old 6th October 2011, 06:48 AM
JamesNZ's Avatar
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 16
Posts: 889
windows_7chrome
Re: Google Chrome

What were the commands given in the SELinux prompt? It may differ slightly from the commands given by Jeff72.
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #14  
Old 6th October 2011, 05:21 PM
pottzie Offline
Registered User
 
Join Date: Mar 2010
Location: Elkhart, Indiana
Posts: 199
linuxfirefox
Re: Google Chrome

Here's my output. http://pastebin.com/EKs3Gd6s
Reply With Quote
  #15  
Old 7th October 2011, 02:27 AM
leidonanam Offline
Registered User
 
Join Date: Oct 2011
Posts: 9
windows_7chrome
Re: Google Chrome

When using Google Chrome in Fedora 15 , i got some problem , can't access Twitter , Google Docs and I find out a solution for that . Hope it will help you
With x86 :
There is a bug in SELinux in Fedora 15 that will prevent some Chrome extensions, like LastPass and XMarks, from working correctly. To fix this, run the following commands.
For Chrome
cd ~/.config
sudo chcon -Rv unconfined_u:object_r:config_home_t:s0 google-chrome
For Chromium
cd ~/.config
sudo chcon -Rv unconfined_u:object_r:config_home_t:s0 chromium

With x64 :
Adobe is apparently working on a 64 bit version of the Flash plugin, but the beta that is currently available doesn't work very well. And while the 32 bit version of Chrome comes with Flash included, the 64 bit version does not.
The easiest way to get a stable version of Flash running in Chrome is to copy the /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so to /opt/google/chrome/plugins/. For Chromium users, the plugin directory is /usr/lib64/chromium-browser/plugins/.
If you don't have the nswrapper_32_64.libflashplayer.so file, you can download it from here.
You can see in the screenshot below that my 64 bit version of Chrome is happily running Flash 10.2.

Hope will help you
Reply With Quote
Reply

Tags
chrome, google

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE & Google Chrome GoinEasy9 F15 Development 8 22nd April 2011 04:10 PM
install google chrome - no google.repo file jimiwa Using Fedora 1 2nd October 2010 08:35 PM
google-chrome ahmedlasheen Using Fedora 9 27th September 2010 02:54 PM
Google Chrome glennzo Using Fedora 7 26th May 2010 10:18 AM
Google Chrome mariuszs Alpha, Beta & Snapshots Discussions (Fedora 11 Only) 17 6th June 2009 02:27 AM


Current GMT-time: 01:40 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat