/
githubmirror
/
libcap-ng
Обзор
Документация
Войти
/
githubmirror
/
libcap-ng
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/capng_restore_state.3
30 строк
803 B
Steve Grubb
Update documentation and fix API issue
22 мар 2026, 21:22
22 мар 2026, 21:22
2f43777
Код
Авторство
О чём код?
.TH "CAPNG_RESTORE_STATE" "3" "March 2026" "Red Hat" "Libcap-ng API" .SH NAME capng_restore_state \- set the internal library state .SH "SYNOPSIS" .B #include <cap-ng.h> .sp void capng_restore_state(void **state); .SH "DESCRIPTION" capng_restore_state is a function that takes the state information previously saved by capng_save_state and restores the libraries internal state. This function is not available in the python bindings. .SH "RETURN VALUE" None. .SH NOTES capng_restore_state free's the previously malloc'd state, thus the state can't be restored multiple times. The working pid is part of the restored state, if restoring the state to a different thread, capng_setpid can be used to update it. .SH "SEE ALSO" .BR capng_save_state (3), .BR capabilities (7) .SH AUTHOR Steve Grubb