]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce caph_enter and caph_enter_casper.
authoroshogbo <oshogbo@FreeBSD.org>
Mon, 7 May 2018 20:38:09 +0000 (20:38 +0000)
committeroshogbo <oshogbo@FreeBSD.org>
Mon, 7 May 2018 20:38:09 +0000 (20:38 +0000)
commitce5697ce5dd586c9f350bfbae97d3781f38eec6b
tree5e1e6f637f8e32325c793ed79503d6967d90b1fe
parentf2a9371551afae9862cf771255b1f2d2704cced7
Introduce caph_enter and caph_enter_casper.

The caph_enter function should made it easier to sandbox application
and not force us to remember that we need to check errno on failure.
Another function is also checking if casper is present.

Reviewed by: emaste, cem (partially)
Differential Revision: https://reviews.freebsd.org/D14557
lib/libcapsicum/capsicum_helpers.3
lib/libcapsicum/capsicum_helpers.h