cannot restore segment prot after reloc的问题

本文介绍了解决在某些启用了SELinux的Linux发行版上运行IDL时出现的“cannotrestoresegmentprotafterreloc:Permissiondenied”错误的方法。提供了两种解决方案:更改默认安全上下文或完全禁用SELinux。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

cannot restore segment prot after reloc的问题
 
 
Topic:
Some Linux distributions with SELinux enabled may prevent IDL from running under the default security context. This TechTip is a workaround for CR#41937
 
Discussion: 
Newer Linux distributions have enabled new kernel security extensions from the SELinux project at the NSA. These extensions allow finer-grained control over system security. However, SELinux also changes some default system behaviors, such as shared library loading, that can be problematic to third party programs.
If you receive the error message "cannot restore segment prot after reloc: Permission denied" when launching IDL, then your SELinux configuration is preventing IDL from launching.
 
To rectify this issue, you can either:
1.
Change the default security context for IDL by issuing the command:
chcon -t texrel_shlib_t /usr/local/rsi/idl_6.1/bin/bin.linux.x86/*.so
2.
Disabling SELinux altogether by setting the line
SELINUX=disabled

in your /etc/sysconfig/selinux file.
For more information about SELinux, please consult your Linux distribution vendor.
 

自己碰到的情况:
执行程序时提示错误:error while loading shared libraries: /usr/lib/oracle/10.2.0.1/client/lib/libnnz10.so: cannot restore segment prot after reloc: Permission denied
用第1种办法解决:chcon -t texrel_shlib_t /usr/lib/oracle/10.2.0.1/client/lib/*.so 

 

发表于: 2007-11-19,修改于: 2007-11-19 10:57,已浏览3757次,有评论4条 推荐 投诉
 
 


 
网友评论
 
网友: 本站网友 时间:2008-01-07 18:52:16 IP地址:59.35.21.★
 
 
 
谢谢, 我碰到同样的问题, 已经解决!! 
 
 

 
网友: 万里北国 时间:2008-12-23 16:10:59 IP地址:124.239.111.★
 
 
 
texrel_shlib_t是一个老参数名,现在已经被textrel_shlib_t代替(之差一个t),但是依然保持texrel_shlib_t的兼容性
我也碰到这个问题,已经解决,我试了一下,
chcon -t texrel_shlib_t

chcon -t textrel_shlib_t
都可以,最好还是后者吧,比较新
 
 

 
网友: 本站网友 时间:2010-08-17 12:27:10 IP地址:123.147.247.★
 
 
 
我已经搞定,谢谢,我用的第一个方法
 
 

 
网友: 本站网友 时间:2010-11-05 16:13:27 IP地址:119.57.32.★
 
 
 
我用第二种方法
setenforce 0
setenforce 1
不用重启
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值