When packaging an application on RHEL or CentOS, you may receive the following error:
cannot restore segment prot after reloc: Permission denied
This is likely due the the SE Linux setting being set to "enforcing"
.
To Temporarily disable enforcement on a running system
/usr/sbin/setenforce 0
To permanently disable enforcement during a system startup
change "enforcing" to "disabled" in ''/etc/selinux/config'' and reboot.
.
By default, CentOS 5 has the SE Linux feature set to "enforcing". We are looking into ways to removing these steps.
本文介绍了当在RHEL或CentOS上打包应用程序时遇到的SELinux权限拒绝错误及其解决方案。临时禁用可通过运行'/usr/sbin/setenforce 0'实现,而永久禁用则需修改'/etc/selinux/config'文件中的设置并重启系统。
1万+

被折叠的 条评论
为什么被折叠?



