Hacker ApprovedDepartments

SELinux

Linux security module in Privacy & security

Mandatory access control for Linux that limits what processes can do, even as root. Critics find it hard to configure and often disable it.

Mandatory access control for Linux that limits what processes can do, even as root. Critics find it hard to configure and often disable it.

64 people gave an opinion

recommend it
37
criticize it
27
approval share
58%
Each figure is one person. RecommendsCriticizes

Recommended in 12 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 37 people recommend itNeeds 10 or more, met.
  • 1.3 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 12 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Strong protection against exploits

    “it's a very valuable tool when you run systems that are exposed to the internet or other hostile environments”

    Comment from 6 Jan 2026 in “Singularity Rootkit: SELinux bypass and netlink filter (ss/conntrack hidden)”

    “There is always selinux if we want to add protection against arbitrary code running as root.”

    Comment from 8 May 2026 in “GNU IFUNC is the real culprit behind CVE-2024-3094”

    “it's secure enough to use Firefox with ublock + privacy badger and enforcing SELinux”

    Comment from 31 Oct 2026 in “Malware uses LLMs to rank victims by how much they're worth”
  • Robust, well-tested default

    “it's well tested, no amount of forks and tricky indirections to bypass syscalls”

    Comment from 7 Feb 2026 in “Python interpreter written in Rust for use by AI”

    “SElinux is also quite robust in access permission handling.”

    Comment from 5 Feb 2026 in “Secure erase for Samsung PM951 NVMe drive (2024)”

    “SELinux by default is a huge plus all by itself.”

    Comment from 5 May 2026 in “Linux, Windows or macOS: Which Operating System to Use in 2026?”
  • Pairs well with other defenses

    “SElinux plus cgroups is probably good enough. Although as soon as it talks to the desktop environment all bets are off.”

    Comment from 30 Aug 2026 in “Omarchy: Any User Process Can Escalate to Root”

    “Secure Boot + LUKS + SELinux gives anyone a pretty airtight userspace.”

    Comment from 25 Nov 2025 in “Google's new 'Aluminium OS' project brings Android to PC”

    “combined with sensible SELinux policies, would likely be sufficient”

    Comment from 8 May 2026 in “Dirtyfrag: Universal Linux LPE”

What people warn about

Each mark is one comment

  • Hard to set up and maintain

    “Selinux is especially powerful for this kind of thing but also requires a lot of advanced knowledge and skills to setup and maintain sadly.”

    Comment from 21 Jul 2026 in “NPM's release cooldown is security theater”

    “It's a cryptic nightmare. You run a tool that gives you some magic string and hope that it works”

    Comment from 13 Dec 2025 in “Capsudo: Rethinking sudo with object capabilities”

    “SELinux errors are still an inscrutable mess and writing SELinux policy is fairly painful.”

    Comment from 25 Dec 2025 in “Meta is using the Linux scheduler designed for Valve's Steam Deck on its servers”
  • Often disabled when in the way

    “It's got the SELinux problem of being useful, but annoying enough that everyone just disables it the second it gets in the way.”

    Comment from 5 Aug 2026 in “Cloudflare OS: an open platform for agents, apps, and work”

    “when people have issues getting software to work, the first thing they are told to try is to turn all that stuff off”

    Comment from 30 Nov 2025 in “Landlock-Ing Linux”

    “SELinux is a rather poor design, and I find that it actively gets in the way of trying to do security well.”

    Comment from 30 Aug 2026 in “Omarchy: Any User Process Can Escalate to Root”
  • Poor errors and policy tooling

    “SELinux errors are still an inscrutable mess and writing SELinux policy is fairly painful.”

    Comment from 25 Dec 2025 in “Meta is using the Linux scheduler designed for Valve's Steam Deck on its servers”

    “SELinux would be a lot more viable if it had a solid way to federate and distribute policy”

    Comment from 10 Apr 2026 in “France Launches Government Linux Desktop Plan as Windows Exit Begins”
  • Not a complete defense

    “Believing SELinux solves the vast majority of security issues is fallacious”

    Comment from 3 Jan 2026 in “Linux kernel security work”

    “it appears these distros were (and are) still vulnerable to this exploit”

    Comment from 20 May 2026 in “Gentoo News: Copy Fail, Dirty Frag, and Fragnesia Kernel Vulnerabilities”

What people recommend instead

The same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

SELinux compared with 1 alternative
ProductRecommendCriticizeApprovalMonthsOwnedBadge
SELinuxThis page372758%12——
AppArmor151158%9——

What people said

40 of the 72 comments that mention it, newest first. Each links to the original comment.

“it's secure enough to use Firefox with ublock + privacy badger and enforcing SELinux”

RecommendsComment from 31 Oct 2026 in “Malware uses LLMs to rank victims by how much they're worth”

“if you are willing to fiddle with SELinux you can get whatever you need”

MixedComment from 11 Oct 2026 in “Mxc: Microsoft Execution Containers version 1.0.0”

“actually configuring SELinux rather than working around it is a massive pain”

MixedComment from 3 Oct 2026 in “Updates to Full Disk Access in macOS”

“SELinux is a rather poor design, and I find that it actively gets in the way of trying to do security well.”

CriticizesComment from 30 Aug 2026 in “Omarchy: Any User Process Can Escalate to Root”

“SElinux plus cgroups is probably good enough. Although as soon as it talks to the desktop environment all bets are off.”

MixedComment from 30 Aug 2026 in “Omarchy: Any User Process Can Escalate to Root”

“apparmor/selinux pair incredibly well”

RecommendsComment from 20 Aug 2026 in “Pacing model development in an era of cyber-critical capabilities”

“It's got the SELinux problem of being useful, but annoying enough that everyone just disables it the second it gets in the way.”

MixedComment from 5 Aug 2026 in “Cloudflare OS: an open platform for agents, apps, and work”

“The facilities are there, but it feels like writing your own OS.”

MixedComment from 25 Jul 2026 in “GDID Windows – Cut the tracker that follows you even under VPN”

“Selinux is especially powerful for this kind of thing but also requires a lot of advanced knowledge and skills to setup and maintain sadly.”

MixedComment from 21 Jul 2026 in “NPM's release cooldown is security theater”

“use an LSM like Tomoyo, App Armor or SELinux to not allow the AI to read the secrets file”

RecommendsComment from 26 Jun 2026 in “What happened after 2k people tried to hack my AI assistant”

“the notoriously difficult to use SELinux uses this as the more-or-less standard way of setting permissions”

MixedComment from 9 Jun 2026 in “Microsoft's open source tools were hacked to steal passwords of AI developers”

“SELinux would've stopped this.”

RecommendsComment from 1 Jun 2026 on Hacker News

“it appears these distros were (and are) still vulnerable to this exploit”

MixedComment from 20 May 2026 in “Gentoo News: Copy Fail, Dirty Frag, and Fragnesia Kernel Vulnerabilities”

“it's become much easier to reason about. It's not actually all that complex.”

MixedComment from 19 May 2026 in “Gentoo News: Copy Fail, Dirty Frag, and Fragnesia Kernel Vulnerabilities”

“Last time I tried it was a pain to setup and a pain to use”

MixedComment from 19 May 2026 in “Gentoo News: Copy Fail, Dirty Frag, and Fragnesia Kernel Vulnerabilities”

“In this day and age infrastructure operators should familiarize themselves with proactive defenses”

RecommendsComment from 14 May 2026 in “New Nginx Exploit”

“robust software with poor UX/DX gets undermined by that poor UX/DX”

MixedComment from 8 May 2026 in “You gave me a u32. I gave you root. (io_uring ZCRX freelist LPE)”

“it is difficult enough that the usual answer is "disable SELinux" or "don't apply it"”

CriticizesComment from 8 May 2026 in “GNU IFUNC is the real culprit behind CVE-2024-3094”

“There is always selinux if we want to add protection against arbitrary code running as root.”

RecommendsComment from 8 May 2026 in “GNU IFUNC is the real culprit behind CVE-2024-3094”

“combined with sensible SELinux policies, would likely be sufficient”

RecommendsComment from 8 May 2026 in “Dirtyfrag: Universal Linux LPE”

“SELinux by default is a huge plus all by itself.”

RecommendsComment from 5 May 2026 in “Linux, Windows or macOS: Which Operating System to Use in 2026?”

“strictly limiting features like user namespaces through SELinux would make Linux significantly more secure”

RecommendsComment from 30 Apr 2026 in “Copy Fail – CVE-2026-31431”

“Selinux does the rest and we encourage devs to write policies for their applications.”

RecommendsComment from 11 Apr 2026 in “Ask HN: Has anyone reconsidered Antivirus software after recent security news?”

“SELinux would be a lot more viable if it had a solid way to federate and distribute policy”

CriticizesComment from 10 Apr 2026 in “France Launches Government Linux Desktop Plan as Windows Exit Begins”

“MAC is already there on most modern distros, but people are often scared to go through training”

RecommendsComment from 9 Apr 2026 in “LittleSnitch for Linux”

“our security relies on SELinux”

MixedComment from 30 Mar 2026 in “15 years, one server, 8GB RAM and 500k users – how Webminal refuses to die”

“Gave up configuring SELinux years ago because it was too time-consuming.”

CriticizesComment from 9 Feb 2026 in “Sleeper Shells: Attackers Are Planting Dormant Backdoors in Ivanti EPMM”

“it's well tested, no amount of forks and tricky indirections to bypass syscalls”

RecommendsComment from 7 Feb 2026 in “Python interpreter written in Rust for use by AI”

“SElinux is also quite robust in access permission handling.”

RecommendsComment from 5 Feb 2026 in “Secure erase for Samsung PM951 NVMe drive (2024)”

“If you need more sophisticated controls try extensions like acl or selinux.”

RecommendsComment from 14 Jan 2026 in “Ask HN: How do you safely give LLMs SSH/DB access?”

“SELinux will protect you from many so-called "zero-day" vulnerabilities.”

RecommendsComment from 6 Jan 2026 in “Singularity Rootkit: SELinux bypass and netlink filter (ss/conntrack hidden)”

“it's a very valuable tool when you run systems that are exposed to the internet or other hostile environments”

RecommendsComment from 6 Jan 2026 in “Singularity Rootkit: SELinux bypass and netlink filter (ss/conntrack hidden)”

“Believing SELinux solves the vast majority of security issues is fallacious”

CriticizesComment from 3 Jan 2026 in “Linux kernel security work”

“SELinux errors are still an inscrutable mess and writing SELinux policy is fairly painful.”

MixedComment from 25 Dec 2025 in “Meta is using the Linux scheduler designed for Valve's Steam Deck on its servers”

“there is a ready made solution to this, one that dbus is already aware of and can use natively”

RecommendsComment from 16 Dec 2025 in “Problems with D-Bus on the Linux desktop”

“It's a cryptic nightmare. You run a tool that gives you some magic string and hope that it works”

CriticizesComment from 13 Dec 2025 in “Capsudo: Rethinking sudo with object capabilities”

“it is designed for traditional servers that don't change often”

MixedComment from 12 Dec 2025 in “BpfJailer: eBPF Mandatory Access Control [pdf]”

“when people have issues getting software to work, the first thing they are told to try is to turn all that stuff off”

CriticizesComment from 30 Nov 2025 in “Landlock-Ing Linux”

“Secure Boot + LUKS + SELinux gives anyone a pretty airtight userspace.”

RecommendsComment from 25 Nov 2025 in “Google's new 'Aluminium OS' project brings Android to PC”

“you may be able to limit the damage from these attacks by using a MAC”

RecommendsComment from 24 Nov 2025 in “Shai-Hulud Returns: Over 300 NPM Packages Infected”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.