|
/selinux is a looking glass into the current state of affairs, akin to /proc or /sys.
The booleans are stored in the on-disk policy located under /etc/selinux/; more specifically /etc/selinux/targeted/policy/.
If you run setsebool without the -P option it only modifies the entry in /selinux/boolean/<name> and does not rebuild the on-disk policy so the setting will not persist a reboot. If you run an strace on it, you can see it open, for example, ftp_home_dir, write the value (0 or 1), then close; it also updates /selinux/commit_pending_bools. Whereas when using the -P, it opens, reads, (compiles,) writes each module in /etc/selinux/, rebuilds the on-disk policy, and then sets each boolean value in /selinux/booleans/ from the just compiled policy.
Last edited by rayfordj; 09-23-2010 at 08:38 PM.
|