capng_save_state - Man Page
get the internal library state
Synopsis
#include <cap-ng.h>
void *capng_save_state(void);
Description
capng_save_state is a function that returns a pointer to the internal state of the libcap-ng library. It should be considered opaque and not for alteration directly. This function should be used when you suspect a third party library may use libcap-ng also and want to make sure it doesn't alter something important. This function is not available in the python bindings.
Return Value
This returns NULL on failure and a non-NULL pointer otherwise.
Notes
The structure returned by capng_save_state is malloc'd; it should be free'd if not used.
See Also
Author
Steve Grubb
Referenced By
June 2009 Red Hat Libcap-ng API