With setsebool <name_of_variable> <on/off> it is possible to change selinux configuration. However the changes are gone after reboot. How can we do these changes persistently?


Yes. There is the -P switch (see the manual page for setsebool), which changes the policy on the disk:

setsebool -P <name_of_variable> <on/off>

does the job.

  • @Christopher Not sure where it was said that it is RHEL6, but I suppose link to general manual page is quite enough. But thanks for the reference. – Jakuje Dec 22 '16 at 21:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.