2008年8月4日 星期一

Disable selinux

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

Or you can disable selinux temprary by the following method
# echo 0 > /selinux/enforce

沒有留言: