1CAPNG_SAVE_STATE(3)              Libcap-ng API             CAPNG_SAVE_STATE(3)
2
3
4

NAME

6       capng_restore_state - set the internal library state
7

SYNOPSIS

9       #include <cap-ng.h>
10
11       void capng_restore_state(void **state);
12
13

DESCRIPTION

15       capng_restore_state is a function that takes the state information pre‐
16       viously saved by capng_save_state and restores the  libraries  internal
17       state. This function is not available in the python bindings.
18
19

RETURN VALUE

21       None.
22
23

NOTES

25       capng_restore_state  free's  the  previously  malloc'd  state, thus the
26       state can't be restored multiple times.
27
28       The working pid is part of the restored state, if restoring  the  state
29       to a different thread, capng_setpid can be used to update it.
30
31

SEE ALSO

33       capng_save_state(3), capabilities(7)
34
35

AUTHOR

37       Steve Grubb
38
39
40
41Red Hat                            June 2009               CAPNG_SAVE_STATE(3)
Impressum