Debian Codegraph @

docs/capng_restore_state.3

raw
1 .TH "CAPNG_RESTORE_STATE" "3" "March 2026" "Red Hat" "Libcap-ng API"
2 .SH NAME
3 capng_restore_state \- set the internal library state
4 .SH "SYNOPSIS"
5 .B #include <cap-ng.h>
6 .sp
7 void capng_restore_state(void **state);
8
9 .SH "DESCRIPTION"
10
11 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.
12
13 .SH "RETURN VALUE"
14
15 None.
16
17 .SH NOTES
18
19 capng_restore_state free's the previously malloc'd state, thus the state can't be restored multiple times.
20
21 The working pid is part of the restored state, if restoring the state to a different thread, capng_setpid
22 can be used to update it.
23
24 .SH "SEE ALSO"
25
26 .BR capng_save_state (3),
27 .BR capabilities (7)
28
29 .SH AUTHOR
30 Steve Grubb