Page MenuHomeFreeBSD

cut(1), rev(1): add Capsicum sandboxing
DraftPublic

Authored by nick_spun.io on Tue, May 26, 5:03 PM.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
None
Summary

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).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73453
Build 70336: arc lint + arc unit