360 Secure SkillHub
360 安全技能中心

Selinux

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

分类:安全
bytesagain
bytesagain
热度 0.08
最近更新 2026-03-24 15:26:54

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bytesagain/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