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

NAME

6       capng_save_state - get the internal library state
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

24       This returns NULL on failure and a non-NULL pointer otherwise.
25
26

NOTES

28       The structure returned by capng_save_state is malloc'd;  it  should  be
29       free'd if not used.
30
31

SEE ALSO

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

AUTHOR

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