SELinux boolean
An on or off switch in the SELinux policy that enables an optional behaviour, such as letting the web server read home directories.
In more detail
getsebool -a lists them and semanage boolean -l adds a description of each. setsebool changes one for the running system only; with -P the value is also written to the policy on disk and survives a reboot.
Example
setsebool -P httpd_enable_homedirs onRelated terms
- SELinux — A Linux security layer that labels every process, file and port and allows only the accesses its policy lists.
- SELinux context — The label user:role:type:level that SELinux attaches to every file and process, of which the type is what the policy checks.
Taught in
- SELinux Contexts: Labels, restorecon And Rules That Last — Red Hat Certified System Administrator (EX200) Exam Prep
- SELinux Ports And Booleans: The Other Two Refusals — Red Hat Certified System Administrator (EX200) Exam Prep
- Mock Exam, Part 2: Real Machines And The Ten Costly Mistakes — Red Hat Certified System Administrator (EX200) Exam Prep
- Forbidden, With Perfect Permissions: Paths, ACL Masks And SELinux Denials — CompTIA Linux+ (XK0-006) Exam Prep
- firewalld: Permanent, Immediate And The Reboot — RHCE in Ansible (EX294): Automate Red Hat Systems
- SELinux: Labels, Ports And Booleans That Persist — RHCE in Ansible (EX294): Automate Red Hat Systems