Skip to content
Back to skills

Selinux

ASecurity

SELinux 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
developmentgogitsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add bytesagain/ai-skills --skill selinux --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Selinux?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Selinux
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bytesagain-selinux/badge)](https://www.skillsdirectory.com/skills/bytesagain-selinux)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md1.1 KB
  • scripts/script.sh21.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.