1CAPNG_SAVE_STATE(3) Libcap-ng API CAPNG_SAVE_STATE(3)
2
3
4
6 capng_save_state - get the internal library state
7
9 #include <cap-ng.h>
10
11 void *capng_save_state(void);
12
13
15 capng_save_state is a function that returns a pointer to the internal
16 state of the libcap-ng library. It should be considered opaque and not
17 for alteration directly. This function should be used when you suspect
18 a third party library may use libcap-ng also and want to make sure it
19 doesn't alter something important. This function is not available in
20 the python bindings.
21
22
24 This returns NULL on failure and a non-NULL pointer otherwise.
25
26
28 capng_restore_state(3), capabilities(7)
29
30
32 Steve Grubb
33
34
35
36Red Hat June 2009 CAPNG_SAVE_STATE(3)