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

NAME

6       keyctl_revoke - Revoke a key
7

SYNOPSIS

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

DESCRIPTION

14       keyctl_revoke() marks a key as being revoked.
15
16       After this operation has been performed on a key, attempts to access it
17       will meet with error EKEYREVOKED.
18
19       The caller must have write permission on a key to be able revoke it.
20

RETURN VALUE

22       On success keyctl_revoke() returns 0.  On error, the value -1  will  be
23       returned and errno will have been set to an appropriate error.
24

ERRORS

26       ENOKEY The specified key does not exist.
27
28       EKEYREVOKED
29              The key has already been revoked.
30
31       EACCES The  named  key  exists,  but  is  not  writable  by the calling
32              process.
33

LINKING

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

SEE ALSO

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