|
NAMECREATE_SERVICE —
casper service declaration macro
LIBRARYCasper Library (libcasper, -lcasper)SYNOPSIS#include <sys/nv.h>
#include <libcasper.h>
#include <libcasper_service.h>
typedef int service_limit_func_t(const nvlist_t *, const nvlist_t *); typedef int service_command_func_t(const char *, const nvlist_t *, nvlist_t *, nvlist_t *); CREATE_SERVICE (name,
limit_func,
command_func,
flags);
DESCRIPTIONTheCREATE_SERVICE macro to create a new Casper service.
The name is a string containing the service name, which
will be used in the
cap_service_open(3),
function to identify it.
The limit_func is a function of type
The flags argument defines limits of the service. The supported flags are:
SEE ALSOcap_enter(2), libcasper(3), capsicum(4), nv(9)HISTORYThelibcasper library first appeared in
FreeBSD 10.3.
AUTHORSThelibcasper library was implemented by
Pawel Jakub Dawidek
<pawel@dawidek.net>
under sponsorship from the FreeBSD Foundation. The
libcasper new architecture was implemented by
Mariusz Zaborski <oshogbo@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |