error while loading shared libraries,permission denied

2302阅读 0评论2012-10-22 rocky-ghu
分类:LINUX

在使用upx对应用程序进行压缩的时候,出现这个错误,根本原因是selinux对这些文件进行了安全检查,要时upx能够正常使用,需要关闭selinux,具体操作是:
修改/etc/selinux/config文件的内容为
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security
# SELINUXTYPE=targeted
 
在内核参数中添加selinux=0
在Fedora14系统上修改启动参数那一行
 kernel /boot/vmlinuz-2.6.35.6-45.fc14.i686 ro root=UUID=414093bd-4326-4de0-9e39-657ef2ca7852 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=zh_CN.UTF-8 KEYTABLE=us rhgb quiet selinux=0
 
重启系统,这样就解决问题
上一篇:bashdb 调试shell程序
下一篇:没有了