Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to disable SELinux for httpd, but when I use the the setsebool command with -P parameter, it doesn't work:

setsebool -P http_can_network_connect 1

Nothing happens when I do that ie, the command is apparently running, but returns nothing, and bash is freeze. I'll wait for 10~30 minutes, and nothing happens.


share|improve this question
How exactly doesn't it work? – Ricardo Altamirano Mar 6 '13 at 14:06
Nothing happens. Nothing is return, just freeze the bash (and doesn't write in SELinux. – Patrick Maciel Mar 6 '13 at 14:14

This link might help, with good references for further reading. What you want to do isn't possible directly, but there are workarounds.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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