Skip to content

cut(1), rev(1): add Capsicum sandboxing#2230

Open
DominoTree wants to merge 1 commit into
freebsd:mainfrom
DominoTree:cut-rev-capsicum
Open

cut(1), rev(1): add Capsicum sandboxing#2230
DominoTree wants to merge 1 commit into
freebsd:mainfrom
DominoTree:cut-rev-capsicum

Conversation

@DominoTree
Copy link
Copy Markdown

Open file arguments through Casper's cap_fileargs service and enter capability mode after limiting stdio rights, so cut(1) and rev(1) run sandboxed.

cut(1) is a bootstrap tool, so the Makefile drops the Casper libraries and -DWITH_CASPER while BOOTSTRAPPING; <casper/cap_fileargs.h> then resolves fileargs_*() to plain fopen(3), matching wc(1)/head(1).

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 23, 2026

Thank you for taking the time to contribute to FreeBSD!

All issues resolved.

Open file arguments through Casper's cap_fileargs service and enter capability mode after limiting stdio rights, so cut(1) and rev(1) run sandboxed.

cut(1) is a bootstrap tool, so the Makefile drops the Casper libraries and -DWITH_CASPER while BOOTSTRAPPING; <casper/cap_fileargs.h> then resolves fileargs_*() to plain fopen(3), matching wc(1)/head(1).

Signed-off-by: Nick Price <nick@spun.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant