成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Linux chromium通過yum安裝解決不能使用問題

運維 系統運維
今天在Fedora People看到有新的Linux chromium安裝包出現,于是打算升級Linux chromium。下載了所有的rpm包(忘記了最初是通過yum安裝的)。安裝時Linux chromium, chromium-libs都能通過rpm -Uvh正常安裝,可是升級v8時還是出了問題。想起以前的教訓,打算先把v8完全卸載再安裝,可是缺無法卸載,無論是通過rpm -e還是yum remove都不行。

給大家推薦一款很不錯的Linux chromium系統很有學習價值,這里我主要講解Linux chromium系統的應用,包括介紹Linux chromium知識等方面。自打裝好Fedora 12之后就發現Linux chromium不能用rpm安裝了,安裝時總是缺這少那,很是費勁,于是按照網上的方法,在/etc/yum.repos.d/下創建一個chromium.repo,內容如下:

  1. view plaincopy to clipboardprint?  
  2. [chromium]     
  3. name=Chromium Test Packages     
  4. baseurl=http://spot.fedorapeople.org/chromium/F$releasever/     
  5. enabled=0     
  6. gpgcheck=0    
  7. [chromium]  
  8. name=Chromium Test Packages  
  9. baseurl=http://spot.fedorapeople.org/chromium/F$releasever/  
  10. enabled=0 
  11. gpgcheck=0 

然后通過yum安裝就可以了。

今天在Fedora People看到有新的Linux chromium安裝包出現,于是打算升級Linux chromium。下載了所有的rpm包(忘記了最初是通過yum安裝的)。安裝時Linux chromium, chromium-libs都能通過rpm -Uvh正常安裝,可是升級v8時還是出了問題。想起以前的教訓,打算先把v8完全卸載再安裝,可是缺無法卸載,無論是通過rpm -e還是yum remove都不行。

這時想到了用yum upodate v8-*,結果卻出現了“Package v8-devel-2.0.3-1.20091209svn3443.fc12.i686.rpm is not signed”的錯誤。在網上找到一個辦法,就是編輯 /etc/yum.conf ,把gpgcheck=1 改為 gpgcheck=0。不過這樣做有潛在的風險,因此在安裝完v8之后就立刻把gpgcheck重新設為1.

另外一個奇怪的問題是,打開Linux chromium時,瀏覽器打不開,而且SELinux總是報錯:

  1. view plaincopy to clipboardprint?  
  2. Summary:     
  3. SELinux is preventing /usr/lib/chromium-browser/chromium-browser from loading     
  4. /usr/lib/chromium-browser/libmedia.so which requires text relocation.     
  5. Detailed Description:     
  6. The chromium-browse application attempted to load     
  7. /usr/lib/chromium-browser/libmedia.so which requires text relocation. This is a     
  8. potential security problem. Most libraries do not need this permission.     
  9. Libraries are sometimes coded incorrectly and request this permission. The     
  10. SELinux Memory Protection Tests     
  11. (http://people.redhat.com/drepper/selinux-mem.html) web page explains how to     
  12. remove this requirement. You can configure SELinux temporarily to allow     
  13. /usr/lib/chromium-browser/libmedia.so to use relocation as a workaround, until     
  14. the library is fixed. Please file a bug report.     
  15. Allowing Access:     
  16. If you trust /usr/lib/chromium-browser/libmedia.so to run correctly, you can     
  17. change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t     
  18. '/usr/lib/chromium-browser/libmedia.so'" You must also change the default file     
  19. context files on the system in order to preserve them even on a full relabel.     
  20. "semanage fcontext -a -t textrel_shlib_t     
  21. '/usr/lib/chromium-browser/libmedia.so'"     
  22. Fix Command:     
  23. chcon -t textrel_shlib_t '/usr/lib/chromium-browser/libmedia.so'    
  24. Additional Information:     
  25. Source Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-     
  26.                               s0:c0.c1023     
  27. Target Context                system_u:object_r:lib_t:s0     
  28. Target Objects                /usr/lib/chromium-browser/libmedia.so [ file ]     
  29. Source                        chromium-browse     
  30. Source Path                   /usr/lib/chromium-browser/chromium-browser     
  31. Port                          <Unknown>     
  32. Host                          bonn.yang     
  33. Source RPM Packages           chromium-4.0.273.0-0.1.20091216svn34775.fc12     
  34. Target RPM Packages           chromium-libs-4.0.273.0-0.1.20091216svn34775.fc12     
  35. Policy RPM                    selinux-policy-3.6.32-56.fc12     
  36. Selinux Enabled               True     
  37. Policy Type                   targeted     
  38. Enforcing Mode                Enforcing     
  39. Plugin Name                   allow_execmod     
  40. Host Name                     bonn.yang     
  41. Platform                      Linux bonn.yang 2.6.31.6-166.fc12.i686.PAE #1 SMP     
  42.                               Wed Dec 9 11:00:30 EST 2009 i686 i686     
  43. Alert Count                   11     
  44. First Seen                    Wed 23 Dec 2009 09:38:16 PM CST     
  45. Last Seen                     Wed 23 Dec 2009 10:28:36 PM CST     
  46. Local ID                      b1f55f28-145d-48dd-9d71-6fb7fe6a57c8     
  47. Line Numbers                       
  48. Raw Audit Messages                 
  49. node=bonn.yang type=AVC msg=audit(1261578516.240:27332): avc:  denied  { execmod } for  pid=2946 comm="chromium-browse" path="/usr/lib/chromium-browser/libmedia.so" dev=sda2 ino=277322 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file     
  50. node=bonn.yang type=SYSCALL msg=audit(1261578516.240:27332): arch=40000003 syscall=125 success=no exit=-13 a0=8ff8000 a1=63000 a2=5 a3=bf899bf0 items=0 ppid=1 pid=2946 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="chromium-browse" exe="/usr/lib/chromium-browser/chromium-browser" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)    
  51. Summary:  
  52. SELinux is preventing /usr/lib/chromium-browser/chromium-browser from loading  
  53. /usr/lib/chromium-browser/libmedia.so which requires text relocation.  
  54. Detailed Description:  
  55. The chromium-browse application attempted to load  
  56. /usr/lib/chromium-browser/libmedia.so which requires text relocation. This is a  
  57. potential security problem. Most libraries do not need this permission.  
  58. Libraries are sometimes coded incorrectly and request this permission. The  
  59. SELinux Memory Protection Tests  
  60. (http://people.redhat.com/drepper/selinux-mem.html) web page explains how to  
  61. remove this requirement. You can configure SELinux temporarily to allow  
  62. /usr/lib/chromium-browser/libmedia.so to use relocation as a workaround, until  
  63. the library is fixed. Please file a bug report.  
  64. Allowing Access:  
  65. If you trust /usr/lib/chromium-browser/libmedia.so to run correctly, you can  
  66. change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t  
  67. '/usr/lib/chromium-browser/libmedia.so'" You must also change the default file  
  68. context files on the system in order to preserve them even on a full relabel.  
  69. "semanage fcontext -a -t textrel_shlib_t  
  70. '/usr/lib/chromium-browser/libmedia.so'"  
  71. Fix Command:  
  72. chcon -t textrel_shlib_t '/usr/lib/chromium-browser/libmedia.so'  
  73. Additional Information:  
  74. Source Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0-  
  75.                               s0:c0.c1023  
  76. Target Context                system_u:object_r:lib_t:s0  
  77. Target Objects                /usr/lib/chromium-browser/libmedia.so [ file ]  
  78. Source                        chromium-browse  
  79. Source Path                   /usr/lib/chromium-browser/chromium-browser  
  80. Port                          <Unknown> 
  81. Host                          bonn.yang  
  82. Source RPM Packages           chromium-4.0.273.0-0.1.20091216svn34775.fc12  
  83. Target RPM Packages           chromium-libs-4.0.273.0-0.1.20091216svn34775.fc12  
  84. Policy RPM                    selinux-policy-3.6.32-56.fc12  
  85. Selinux Enabled               True  
  86. Policy Type                   targeted  
  87. Enforcing Mode                Enforcing  
  88. Plugin Name                   allow_execmod  
  89. Host Name                     bonn.yang  
  90. Platform                      Linux bonn.yang 2.6.31.6-166.fc12.i686.PAE #1 SMP  
  91.                               Wed Dec 9 11:00:30 EST 2009 i686 i686  
  92. Alert Count                   11  
  93. First Seen                    Wed 23 Dec 2009 09:38:16 PM CST  
  94. Last Seen                     Wed 23 Dec 2009 10:28:36 PM CST  
  95. Local ID                      b1f55f28-145d-48dd-9d71-6fb7fe6a57c8  
  96. Line Numbers                    
  97. Raw Audit Messages              
  98. node=bonn.yang type=AVC msg=audit(1261578516.240:27332): avc:  denied  { execmod } for  pid=2946 comm="chromium-browse" path="/usr/lib/chromium-browser/libmedia.so" dev=sda2 ino=277322 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file 
  99. node=bonn.yang type=SYSCALL msg=audit(1261578516.240:27332): arch=40000003 syscall=125 success=no exit=-13 a0=8ff8000 a1=63000 a2=5 a3=bf899bf0 items=0 ppid=1 pid=2946 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="chromium-browse" exe="/usr/lib/chromium-browser/chromium-browser" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null) 

試了半天也沒能在SELinux中設好libmedia.so的permission(有人說只要把libmedia.so的permission設為permissive就可以)。后來在一個法語的網頁上(http://tuxmaya.wordpress.com/2009/12/21/nuevos-paquetes-de-chormium-en-fedora/ )發現了這樣一條命令來取消 SELinux 對 /usr/lib/chromium-browser/下的所有.so文件的permission 的檢查。

  1. view plaincopy to clipboardprint?  
  2. chcon -t texrel_shlib_t /usr/lib*/chromium-browser/*.so    
  3. chcon -t texrel_shlib_t /usr/lib*/chromium-browser/*.so   

另外,該網頁(http://forums.fedoraforum.org/showthread.php?t=237029 )上也提到了這種方法。

設置之后,Linux chromium就可以正常工作了。這篇博文就是用Linux chromium來寫的。

PS:

寫完博文后在SELinux的錯誤信息中發現了fix的方法:

  1. view plaincopy to clipboardprint?  
  2. hcon -t textrel_shlib_t '/usr/lib/chromium-browser/libmedia.so'    
  3. hcon -t textrel_shlib_t '/usr/lib/chromium-browser/libmedia.so'   
  1. view plaincopy to clipboardprint?  
  2. semanage fcontext -a -t textrel_shlib_t     
  3. '/usr/lib/chromium-browser/libmedia.so'    
  4. semanage fcontext -a -t textrel_shlib_t  
  5. '/usr/lib/chromium-browser/libmedia.so'   

實在是太粗心了,當時竟然沒有仔細看…… 謹記這一教訓!

【編輯推薦】

  1. 介紹Linux PPStream版本安裝的教程
  2. Linux內核運行啟動Fedora
  3. 簡易介紹Linux ARM系統交叉編譯在Fedora 下建立
  4. 建立Linux SVN倉庫文件與安裝及配置
  5. 虛擬機VMware Tools for Linux綠色精簡版
責任編輯:佚名 來源: CSDN
相關推薦

2013-01-04 13:47:53

2010-03-09 15:50:22

不能無線上網

2021-04-22 14:37:21

Windows 10Samba文件共享

2009-12-29 11:40:50

2010-09-14 10:34:17

DIV CSS

2009-09-27 17:58:35

Linux桌面Linux操作系統

2010-01-05 18:02:38

Linux pps

2009-03-21 16:30:40

虛擬化Vmware

2009-07-14 16:16:04

JDBC update

2017-12-05 15:32:44

深度學習語音識別

2010-05-28 09:10:29

遠程協助軟件

2011-03-10 15:47:45

2010-12-27 11:00:53

Virtualbox

2010-02-23 13:58:22

Python性能

2009-06-12 09:00:15

Linux域名訪問

2021-01-11 07:52:30

系統cpu工具

2010-04-01 09:31:16

CentOS系統

2022-07-12 10:12:37

面試箭頭函數前端

2011-08-15 21:42:57

Oracle數據庫不能使用索引

2020-02-24 21:46:09

ChromiumFirefox桌面應用
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 色天堂影院 | 在线观看中文字幕dvd播放 | 国产精品久久久久久二区 | 一区二区三区在线观看视频 | 亚洲国产成人精品女人久久久野战 | 欧美精品一区二区三区在线播放 | 精品国产青草久久久久福利 | 亚洲社区在线 | 成人在线视频一区 | 国产综合久久 | 97免费视频在线观看 | 色噜噜狠狠色综合中国 | 午夜影院中文字幕 | 亚洲精品欧美 | 色播久久久 | 毛片网站免费观看 | 久久国产精品免费一区二区三区 | 国产黄色精品在线观看 | 99精品视频在线 | 黑人精品欧美一区二区蜜桃 | 欧美日韩在线观看一区 | 国产乱码精品一区二区三区中文 | 亚洲天堂久久 | 久久久久九九九女人毛片 | 欧美成人专区 | 日韩欧美在线播放 | 精品视频999 | 国产一级黄色网 | 国产成人一区 | 欧美一区二区视频 | 日韩中文字幕视频 | 欧美视频免费 | 久久一区二区三区四区五区 | 久久久久久免费毛片精品 | 成人免费看黄 | 黄网站涩免费蜜桃网站 | 区一区二区三在线观看 | 亚洲国产精品日韩av不卡在线 | 日韩成人免费视频 | 欧美成人影院 | 久久久久久国产精品 |