]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add cap_sysctl(3) and cap_sysctlnametomib(3).
authormarkj <markj@FreeBSD.org>
Mon, 13 May 2019 17:49:54 +0000 (17:49 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 13 May 2019 17:49:54 +0000 (17:49 +0000)
commit77199ac5e7d410ec3470b7b0a4df786de7c9fd2c
tree787ca6e4b149c7d9dd6deb51473d31d03b16d197
parent57102bcf40779603c9e7548e77d75bc66b7514a6
Add cap_sysctl(3) and cap_sysctlnametomib(3).

These complement cap_sysctlbyname(3) to provide a drop-in
replacement for the corresponding libc functions.

Also revise the libcap_sysctl limit interface to provide access
to sysctls by MIB, and to avoid direct manipulation of nvlists
by the caller.

Reviewed by: oshogbo
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17854
ObsoleteFiles.inc
lib/libcasper/services/cap_sysctl/Makefile
lib/libcasper/services/cap_sysctl/cap_sysctl.3
lib/libcasper/services/cap_sysctl/cap_sysctl.c
lib/libcasper/services/cap_sysctl/cap_sysctl.h
lib/libcasper/services/cap_sysctl/tests/sysctl_test.c