LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 933|回复: 9

google地球总不能运行自f12开始,现在f13也一样

[复制链接]
发表于 2010-6-28 12:02:46 | 显示全部楼层 |阅读模式
有什么办法解决这个问题吗?
发表于 2010-6-28 15:13:14 | 显示全部楼层
请在虚拟终端(VT)下运行下googlearth,然后把输出贴出来……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-28 22:23:47 | 显示全部楼层
概述:

SELinux 正在阻止 googleearth-bin 装载需要重新定位文本的
/home/ZXF/

详细描述:

googleearth-bin 应用程序试图读取需要文本重定位的
/home/ZXF/google-earth/libIGGfx.so。 这是潜在的安全问题。
多数程序库不需要这样做。有时候程序库编码不正确会有这样的请求。
SELinux 内存保护测试 (http://people.redhat.com/drepper/selinux-mem.html)
页面说明如何移除这个请求。您能够设置 S

允许访问:

If you trust /home/ZXF/google-earth/libIGGfx.so to run correctly, you can change
the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/home/ZXF/google-earth/libIGGfx.so'" You must also change the default file
context files on the system in order to preserve them even on a full relabel.
"semanage fcontext -a -t textrel_shlib_t '/home/ZXF/google-earth/libIGGfx.so'"

Fix 命令:

chcon -t textrel_shlib_t '/home/ZXF/google-earth/libIGGfx.so'

附加信息:

源上下文                  unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
目标上下文               unconfined_ubject_r:user_home_t:s0
目标对象                  /home/ZXF/google-earth/libIGGfx.so [ file ]
源                           googleearth-bin
源路径                     /home/ZXF/google-earth/googleearth-bin
端口                        <未知>
主机                        localhost.localdomain
源 RPM 软件包            
目标 RPM 软件包         
策略 RPM                    selinux-policy-3.7.19-28.fc13
启用 Selinux                True
策略类型                  targeted
Enforcing 模式              Enforcing
插件名称                  allow_execmod
主机名                     localhost.localdomain
平台                        Linux localhost.localdomain
                              2.6.33.5-124.fc13.i686.PAE #1 SMP Fri Jun 11
                              09:42:24 UTC 2010 i686 i686
警报计数                  4
第一个                     2010年06月21日 星期一 21时16分09秒
最后一个                  2010年06月28日 星期一 22时22分07秒
本地 ID                     6f61ae8f-b322-4327-be4c-2c4c3ae81a55
行号                        

原始核查信息            

node=localhost.localdomain type=AVC msg=audit(1277734927.684:48): avc:  denied  { execmod } for  pid=4602 comm="googleearth-bin" path="/home/ZXF/google-earth/libIGGfx.so" dev=sda7 ino=6328 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_ubject_r:user_home_t:s0 tclass=file

node=localhost.localdomain type=SYSCALL msg=audit(1277734927.684:48): arch=40000003 syscall=125 success=no exit=-13 a0=2db7000 a1=370000 a2=5 a3=bfa49fd0 items=0 ppid=1 pid=4602 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="googleearth-bin" exe="/home/ZXF/google-earth/googleearth-bin" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
回复 支持 反对

使用道具 举报

发表于 2010-6-28 23:46:14 | 显示全部楼层
那就把SELinux关掉吧……

另外还是建议用yum来安装,不要直接装在家目录中。
回复 支持 反对

使用道具 举报

发表于 2010-6-29 00:55:03 | 显示全部楼层
把googearth目录下面的qt相关的lib全部换成系统自带的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-6-30 17:29:11 | 显示全部楼层
Post by zakarum;2100260
把googearth目录下面的qt相关的lib全部换成系统自带的。


如何做呢?我是菜鸟
回复 支持 反对

使用道具 举报

发表于 2010-6-30 17:37:31 | 显示全部楼层
Post by zxf2000;2100586
如何做呢?我是菜鸟


禁用SELinux总会吧?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-7-6 10:06:06 | 显示全部楼层
Post by pingz;2100587
禁用SELinux总会吧?


其实我已经严禁用SELinux了,在F11时这种方法用效,可现在关了也不行。
回复 支持 反对

使用道具 举报

发表于 2010-7-6 13:05:37 | 显示全部楼层
Post by zxf2000;2100586
如何做呢?我是菜鸟


安装完google-earth以后,把其目录下面libQt*.so的文件都换成系统自带的libQt*.so,如果你没有,可以去安装qt
回复 支持 反对

使用道具 举报

发表于 2010-7-7 02:31:29 | 显示全部楼层
Post by zxf2000;2101614
其实我已经严禁用SELinux了,在F11时这种方法用效,可现在关了也不行。


关了的话,出错内容应该不是你提供的这个,不过我现在手边没有F13没办法核对。照zakarum说的试试看。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表