Changeset View
Changeset View
Standalone View
Standalone View
lib/libcasper/services/cap_fileargs/cap_fileargs.3
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | |||||
.It cap_rights ( NV_TYPE_BINARY ) | .It cap_rights ( NV_TYPE_BINARY ) | ||||
The | The | ||||
.Va cap_rights | .Va cap_rights | ||||
argument contains a list of the capability rights which file should be limited to. | argument contains a list of the capability rights which file should be limited to. | ||||
.It ( NV_TYPE_NULL ) | .It ( NV_TYPE_NULL ) | ||||
Any number of | Any number of | ||||
.Dv NV_TYPE_NULL | .Dv NV_TYPE_NULL | ||||
where the name of the element is name of the file which can be opened. | where the name of the element is name of the file which can be opened. | ||||
.El | |||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
The following example first parse some options and then create the | The following example first parse some options and then create the | ||||
.Nm system.fileargs | .Nm system.fileargs | ||||
service with remaining arguments. | service with remaining arguments. | ||||
.Bd -literal | .Bd -literal | ||||
int ch, fd, i; | int ch, fd, i; | ||||
cap_rights_t rights; | cap_rights_t rights; | ||||
fileargs_t *fa; | fileargs_t *fa; | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
.Xr realpath 3 , | .Xr realpath 3 , | ||||
.Xr capsicum 4 , | .Xr capsicum 4 , | ||||
.Xr nv 9 | .Xr nv 9 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Nm cap_fileargs | .Nm cap_fileargs | ||||
service first appeared in | service first appeared in | ||||
.Fx 10.3 . | .Fx 10.3 . | ||||
.Sh AUTHORS | |||||
.An Mariusz Zaborski Aq Mt oshogbo@FreeBSD.org | |||||
.Sh BUGS | .Sh BUGS | ||||
The | The | ||||
.Lb cap_fileargs | .Lb cap_fileargs | ||||
included in | included in | ||||
.Fx | .Fx | ||||
is considered experimental, and should not be deployed in production | is considered experimental, and should not be deployed in production | ||||
environments without careful consideration of the risks associated with | environments without careful consideration of the risks associated with | ||||
the use of experimental operating system features. | the use of experimental operating system features. | ||||
.Sh AUTHORS | |||||
.An Mariusz Zaborski Aq Mt oshogbo@FreeBSD.org |