1KEYCTL_CLEAR(3)           Linux Key Management Calls           KEYCTL_CLEAR(3)
2
3
4

NAME

6       keyctl_clear - Clear a keyring
7

SYNOPSIS

9       #include <keyutils.h>
10
11       long keyctl_clear(key_serial_t keyring);
12

DESCRIPTION

14       keyctl_clear() clears the contents of a keyring.
15
16       The caller must have write permission on a keyring to be able clear it.
17

RETURN VALUE

19       On  success  keyctl_clear()  returns 0.  On error, the value -1 will be
20       returned and errno will have been set to an appropriate error.
21

ERRORS

23       ENOKEY The keyring specified is invalid.
24
25       EKEYEXPIRED
26              The keyring specified has expired.
27
28       EKEYREVOKED
29              The keyring specified had been revoked.
30
31       EACCES The keyring exists, but is not writable by the calling process.
32

LINKING

34       This is a library function that can  be  found  in  libkeyutils.   When
35       linking, -lkeyutils should be specified to the linker.
36

SEE ALSO

38       keyctl(1),
39       add_key(2),
40       keyctl(2),
41       request_key(2),
42       keyctl_get_keyring_ID(3),
43       keyctl_join_session_keyring(3),
44       keyctl_update(3),
45       keyctl_revoke(3),
46       keyctl_chown(3),
47       keyctl_setperm(3),
48       keyctl_describe(3),
49       keyctl_link(3),
50       keyctl_unlink(3),
51       keyctl_search(3),
52       keyctl_read(3),
53       keyctl_instantiate(3),
54       keyctl_negate(3),
55       keyctl_set_reqkey_keyring(3),
56       keyctl_set_timeout(3),
57       keyctl_assume_authority(3),
58       keyctl_describe_alloc(3),
59       keyctl_read_alloc(3),
60       request-key(8)
61
62
63
64Linux                             4 May 2006                   KEYCTL_CLEAR(3)
Impressum