SELinux
A Linux security layer that labels every process, file and port and allows only the accesses its policy lists.
In more detail
It works alongside ordinary file permissions: an access must pass both. RHEL uses the targeted policy, which confines network services such as the web server and leaves ordinary users mostly unconfined. The mode is set in /etc/selinux/config and can be overridden on the kernel command line.
Examples
getenforcesestatusRelated terms
- SELinux mode — Whether SELinux refuses and logs disallowed accesses (enforcing), only logs them (permissive), or is off (disabled).
- 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.
- 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.
- AVC denial — A record in the audit log saying that SELinux refused, or in permissive mode would have refused, an access.
Related guides
Taught in
- The Reboot That Fails You — Red Hat Certified System Administrator (EX200) Exam Prep
- Exam Strategy: Order, Verify, And The Docs You May Use — Red Hat Certified System Administrator (EX200) Exam Prep
- Logins, su, sudo And SSH Between Hosts — Red Hat Certified System Administrator (EX200) Exam Prep
- Diagnosing Permission Problems — Red Hat Certified System Administrator (EX200) Exam Prep
- Targets, Boot And Shutdown — Red Hat Certified System Administrator (EX200) Exam Prep
- Recovering Root And Changing The Boot Loader — Red Hat Certified System Administrator (EX200) Exam Prep
- Tuning Profiles With tuned — Red Hat Certified System Administrator (EX200) Exam Prep
- Time Clients With chrony — Red Hat Certified System Administrator (EX200) Exam Prep
- Ninety Minutes, Two Kinds Of Question: How Linux+ Is Scored — CompTIA Linux+ (XK0-006) Exam Prep
- Twelve Old Servers, Two New Hosts: KVM, QEMU, libvirt And Disk Images — CompTIA Linux+ (XK0-006) Exam Prep
- Works On My Laptop: Images, Containers, Volumes And Networks — CompTIA Linux+ (XK0-006) Exam Prep
- One Word Locked Out Every Directory User: PAM, SSSD, LDAP And Kerberos — CompTIA Linux+ (XK0-006) Exam Prep
- You Are In Emergency Mode: Boot Failures From GRUB To fstab, On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- The Tracker Is Down, For Some People: Link, Address, Route, Name And Port — CompTIA Linux+ (XK0-006) Exam Prep
- Forbidden, With Perfect Permissions: Paths, ACL Masks And SELinux Denials — CompTIA Linux+ (XK0-006) Exam Prep
- It Is Slow, Says Everyone: CPU, Memory, Disk And Network Bottlenecks — CompTIA Linux+ (XK0-006) Exam Prep
- Ninety Minutes, Five Domains: The Full Mock And The Week Before The Exam — CompTIA Linux+ (XK0-006) Exam Prep
- Containers: Run, Publish, Persist, And Configure The Engine — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- SELinux: Modes, Labels, Ports And Booleans That Last — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- OpenSSH: Keys, Client Aliases And A Hardened Server — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Finding Modules In Collections: ansible-doc And navigator — RHCE in Ansible (EX294): Automate Red Hat Systems
- RHEL System Roles: timesync And selinux From A Collection — RHCE in Ansible (EX294): Automate Red Hat Systems
- firewalld: Permanent, Immediate And The Reboot — RHCE in Ansible (EX294): Automate Red Hat Systems
- Scheduling: cron Jobs With Names, And Timers — RHCE in Ansible (EX294): Automate Red Hat Systems
- SELinux: Labels, Ports And Booleans That Persist — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 1: Seven Tasks Across Three Sections — RHCE in Ansible (EX294): Automate Red Hat Systems