SELinux tips — authorized label literacy
SELinux helps authorized labs sample label and mode literacy on hosts they own. Pair with apparmor-tips, getcap-tips, setcap-tips, capsh-tips, auditctl-tips. Prefer lab VMs — never weaken MAC on foreign hosts without permission.
Snapshot
| Field | Value |
|---|---|
| Surface | SELinux tip checklist |
| Job | Authorized label literacy |
| AppArmor peer | apparmor-tips |
| getcap peer | getcap-tips |
| audit peer | auditctl-tips |
| capsh peer | capsh-tips |
Tip checklist (authorized only)
- Confirm you may inspect SELinux Evidence on the host (lab VM / syllabus box you own or were given access to).
- Prefer status samples (
getenforce/sestatus) — never flip production to permissive without change control. - Record short factual notes; quote short Evidence (mode, policy name — redact hostnames).
- Optional: AppArmor lane → apparmor-tips.
- Optional: audit rules → auditctl-tips.
- Optional: capability bits → getcap-tips / capsh-tips.
- Redact hostnames, context labels, and policy module names if policy requires.
- Stop at literacy — no exploit / setenforce-bypass cookbooks.
Allowed framing
- Classroom labs reading SELinux mode/labels on authorized disposable hosts.
- Binding short factual notes as Evidence.
- Documenting expected vs observed enforcing/permissive mode for authorized inventory notes.
- Comparing SELinux ↔ AppArmor / audit peer tip pages under one binder.
Scope we will not cover
- No crack/pirate/keygen via SELinux.
- No intentional setenforce-0 / policy-disable PoCs against foreign hosts.
- No credential-theft via context labels against hosts you do not own.
- No bypass cookbooks that weaken confinement without authorization.
Beginner path (authorized only)
- Obtain one syllabus-approved lab host you control or may inspect.
- Run a short status SELinux sample; quote success.
- Bind notes as Evidence; redact hostnames and sensitive labels.
- Optional: compare with apparmor-tips / auditctl-tips.
- Stop at literacy — no attack or MAC-bypass cookbooks.
- Prefer authorized, redacted, status Evidence.
- Use AppArmor / audit / capability peer tip pages when the syllabus asks.
- No exploit, crack, or unauthorized-access framing.
For legal, authorized and educational use only.
FAQ
What is a "SELinux tip" page in BinBench framing?
A checklist for reading authorized SELinux label/mode Evidence on hosts you own or were given syllabus access to — not a cookbook for setting permissive mode on foreign hosts.
How does this relate to apparmor-tips / auditctl-tips?
Those pages cover AppArmor profiles and audit rules. This page zooms on a general SELinux tip checklist — it does not overwrite those pages.
Can I set SELinux permissive on hosts I do not own?
No. Authorization first. BinBench will not publish unauthorized MAC-disable recipes against foreign hosts.
Does this teach exploit / bypass PoCs via SELinux?
No. Mentions of exploit/bypass appear only as refusals. Authorized literacy only — prefer lab VMs and getenforce samples.
Does this teach credential theft via SELinux?
No. Redact context labels, hostnames, and policy module names before sharing excerpts.