capng_restore_state(3)

capng_restore_state3

Set the internal library state

Usage

#include <cap-ng.h>

void capng_restore_state(void **state);

Overview

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.

Return value

None.

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.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–11
  2. 12–13
  3. Arch

Author

Steve Grubb

From libcap-ng 0.9.6-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.