gentoo/hardened-refpolicy/refpolicy-semantic-review
Claude Code and agent skill by gentoo/hardened-refpolicy
- community
Checking that the SKILL.md file is still in the repository.
Compare base and changed compiled SELinux Reference Policy behavior. Use for changes that may alter permissions, transitions, attributes, roles, labels, booleans, tunables, constraints, or other compiled policy behavior.
Install
npx vskill@latest install gentoo/hardened-refpolicy/refpolicy-semantic-reviewSKILL.md
Reference Policy Semantic Review
Review the actual compiled-policy effect rather than relying only on source inspection.
Establish Comparable Inputs
- Read
.github/workflows/tests.yml,global-vars.yml,build-policy.yml,diff-policy.yml,
and validate-policy.yml.
- Record the base revision, changed revision, and every build option. For a CI-equivalent
comparison, note that tests.yml diffs the pull request's github.base_ref build against the changed-branch build, not an arbitrary prior commit.
- Select configurations that exercise the change. Use the current analysis matrix for a
CI-equivalent review; tests.yml shows this is a reduced subset of the full build matrix.
- Build base and changed artifacts with identical toolchains and options.
- Do not alter or discard the user's current worktree to build the baseline. Use existing CI
artifacts or a separate, specifically named temporary worktree.
- Remove any temporary worktree and associated temporary artifacts after the comparison unless
the user asks to retain them.
If equivalent base and changed artifacts cannot be produced, report the review as incomplete and identify the missing artifact or tool.
Build Artifacts
Follow the ordering and environment in the current build-policy.yml:
- Remove stale generated configuration with
make barewhen starting from a previous build. - Run
make conf. - Build the policy with the selected configuration and
WERROR=y. - Run
make validate. - Locate the resulting binary policy using the Makefile targets used by current CI; do not assume
a fixed output path.
Keep the base and changed policies under distinct, explicit paths.
Compare Behavior
Run:
Review the complete output. Categorize each semantic difference, including:
- Added or removed allow rules and type transitions.
- Attribute membership changes and their indirect effects.
- Role and user changes.
- Boolean, tunable, and conditional-policy changes.
- Labeling and file-context changes.
- Constraint, MLS, and MCS effects.
Trace unexpected differences back to their source. Do not suppress or dismiss differences merely because the policy compiles.
Check Security Goals
Run the current sechecker command from validate-policy.yml against the changed compiled policy.
Evaluate results against doc/SECURITY_GOALS.md.
If a necessary permission grant fails a sechecker test, any new exemption must have an inline comment explaining why the domain needs the permission. Do not add unexplained exemptions or weaken checks to obtain a passing result.
Report
Report:
- Base and changed revisions.
- Tool versions and complete build configurations.
- Artifact paths or CI artifact names.
- Expected semantic differences and why each is intended.
- Unexpected differences, even if later corrected.
secheckerresults and any exemptions.- Missing tools or artifacts as an incomplete semantic review.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/refpolicy-semantic-review/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gentoo/hardened-refpolicy/refpolicy-semantic-review)