360 Secure SkillHub
360 安全技能中心

Selinux

该 Skill 提供 SELinux 参考内容,包括强制访问控制简介、enforcing/permissive/disabled 模式、安全上下文、布尔值、策略模块、文件标签、端口管理以及 audit2why 和 sealert 故障排查,面向 Linux 安全运维。

bytesagain
bytesagain
热度 19.77
最近更新 2026-03-24 15:26:54
分类:安全依赖:代码执行应用场景:DevOps / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add selinux
Metadata
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