logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

capng_restore_state - set the internal library state

Author

Steve Grubb Red Hat June 2009 CAPNG_SAVE_STATE(3)

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.

Name

capng_restore_state - set the internal library state

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.

Return Value

None.

See Also

capng_save_state(3), capabilities(7)

Synopsis

#include<cap-ng.h> void capng_restore_state(void **state);

See Also