check caph_enter() failure
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
What is the rationale behind this change?
It is unlikely that beep will be used in a context where sandboxing would be valuable but it is a simple demonstration of a capability sandbox and is easy/low-cost to do.
usr.bin/beep/beep.c | ||
---|---|---|
208 | caph_enter() still needs error checking. |
Comment Actions
It's a nice example of how easy example how to use Capsicum by opening all resources before entering capability mode, but would better to call cap_enter() instead of caph_enter()?
Comment Actions
better to call cap_enter() instead of caph_enter()?
caph_enter is a very small wrapper that just ignores ENOSYS in case it's running on a kernel compiled without options CAPABILITY_MODE. If we remove that as an option we could stop doing this