Thanks for helping improve these Sandboxec profiles.
This repository contains practical, reusable sandboxec YAML profiles for CLI workflows on Linux.
- Keep profiles least-privilege by default.
- Add only the minimum
fsandnetrules needed. - Prefer profile-specific paths over broad paths.
- Document why unusual allowances are required.
- Avoid adding unrelated formatting or refactors in the same change.
When changing a profile (*.yaml):
- Start from the smallest allow-list that still works.
- Use narrow filesystem rights first (
rorrx) beforerw. - Limit network access to required ports only.
- Keep
unsafe-host-runtime: trueonly when needed for host-linked runtimes. - Use
ignore-if-missing: trueonly for optional paths.
When validating profile behavior:
- Prefer
--config <local-profile.yaml>for reproducible in-repo checks. --configalso accepts remotehttp(s)YAML URLs when needed for comparison.--named-config <name>(or-C <name>) resolves profiles fromsandboxec/profiles.- Do not combine
--configand--named-configin the same command.
For profile authoring and tuning workflow, follow SKILL.md.
- Treat it as the command-first playbook for deriving rules from
your-command. - Include rule-by-rule rationale and validation commands in your PR notes.
Profiles may be organized into group folders (for example, agents/) when it improves clarity.
- Use a group folder only when at least 2 related profiles share the same use-case.
- Use short, lowercase folder names based on use-case.
- Keep profile filenames stable when moving them into a folder.
- Update all path references in
README.mdwhen introducing or changing groups. - In the PR description, explain why the new group is needed.
Before opening a PR:
- The target command starts successfully with the updated profile.
- No extra writable paths were added without clear need.
- No unnecessary outbound ports were allowed.
- YAML is valid and consistently formatted.
- README remains accurate if behavior/usage changed.
Please include:
- What command/workflow the profile is for.
- Which rules were added/removed/changed.
- Why each new permission is required.
- Any kernel or distro assumptions.
- A short test command used to verify behavior.
Be respectful and constructive in discussions and reviews.