SELinux mandatory access control reference. Enforcing/permissive modes, security contexts, booleans, policy modules, file labeling, port management, and troubleshooting with audit2why and sealert.
Scanned 9/7/2026
Install to Claude Code
npx -y skills add bytesagain/ai-skills --skill selinux --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Selinux?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/bytesagain-selinux)More formats (shields.io, HTML) on the badges page.
---
name: "selinux"
version: "1.0.0"
description: "SELinux mandatory access control reference. Enforcing/permissive modes, security contexts, booleans, policy modules, file labeling, port management, and troubleshooting with audit2why and sealert."
author: "BytesAgain"
homepage: "https://bytesagain.com"
source: "https://github.com/bytesagain/ai-skills"
tags: [selinux, security, linux, mac, access-control, sysops]
category: "sysops"
---
# SELinux
SELinux mandatory access control reference. Real commands, real configs, real troubleshooting.
## Commands
| Command | Description |
|---------|-------------|
| `intro` | What is SELinux, MAC vs DAC, NSA origin |
| `modes` | Enforcing/permissive/disabled, getenforce/setenforce |
| `contexts` | Security contexts user:role:type:level, ls -Z, ps -Z |
| `booleans` | getsebool/setsebool, common booleans |
| `policy` | Targeted vs MLS, policy modules, semodule |
| `troubleshoot` | audit2why, sealert, setroubleshoot |
| `file-labels` | chcon, restorecon, semanage fcontext |
| `ports` | semanage port, adding custom ports |
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.