Back to skills
SKILL.md
Selinux
ASecuritySELinux mandatory access control reference. Enforcing/permissive modes, security contexts, booleans, policy modules, file labeling, port management, and troubleshooting with audit2why and sealert.
- 12 stars
- 0 votes
- 0 copies
- 12 views
- Added September 7, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add bytesagain/ai-skills --skill selinux --agent claude-codeAre you the author of Selinux?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bytesagain-selinux)---
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 |
Files in this skill
- SKILL.md
- scripts/script.sh
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.