zq97_0 发表于 2004-5-4 22:26:20

fce2test3的问题?

每次用rpm -ivh *.rpm时都会显示一堆如下的提示:
.....
/etc/security/selinux/file_contexts:invalid context system_u:object_r:bin_t on line number 1775/etc/security/selinux/file_contexts:invalid context system_u:object_r:bin_t on line number 1776/etc/security/selinux/file_contexts:invalid context system_u:object_r:bin_t on line number 1777/etc/security/selinux/file_contexts:invalid context system_u:object_r:bin_t on line number 1778/etc/security/selinux/file_contexts:invalid context system_u:object_r:bin_t on line number 1782/etc/security/selinux/file_contexts:invalid context system_u:object_r:bin_t on line number 1783/etc/security/selinux/file_contexts:invalid context system_u:object_r:xdm_var_run_t on line number 1784
/etc/security/selinux/file_contexts:invalid context system_u:object_r:xdm_var_run_t on line number 1785
/etc/security/selinux/file_contexts:invalid context system_u:object_r:xfs_tmp_t on line number 1787
/etc/security/selinux/file_contexts:invalid context system_u:object_r:xfs_exec_t on line number 1788
/etc/security/selinux/file_contexts:invalid context system_u:object_r:agp_device_t on line number 1790
/etc/security/selinux/file_contexts:invalid context system_u:object_r:dri_device_t on line number 1791
/etc/security/selinux/file_contexts:invalid context system_u:object_r:xserver_exec_t on line number 1792
/etc/security/selinux/file_contexts:invalid context system_u:object_r:xserver_exec_t on line number 1793
/etc/security/selinux/file_contexts:invalid context system_u:object_r:xserver_exec_t on line number 1794
/etc/security/selinux/file_contexts:invalid context system_u:object_r:xserver_exec_t on line number 1795
.....
希望大侠指定一下.

fudaming 发表于 2004-5-5 00:13:07

建议重装系统,这个东西是selinux造成的。selinux好象要在磁盘分区上写东西,过程是不可逆的。我第一次装test2的时候没注意,安装完第一次重启是要加内核参数selinux=0,我忘了,结果就是这样。即使下一次禁用了selinux也没办法还原了。
不过不明白的是release note里面讲selinux在test3是默认禁用的。怎么也会这样呢?我估计是内核被打了补丁。

cobranail 发表于 2004-5-5 01:01:00

把这个文件改名:/etc/security/selinux/file_contexts,随便改个名字
然后再创建一个同名的空文件:/etc/security/selinux/file_contexts
页: [1]
查看完整版本: fce2test3的问题?