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

NAME

6       keyctl_invalidate - invalidate a key
7

SYNOPSIS

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

DESCRIPTION

14       keyctl_invalidate()  invalidates a key.  The key is scheduled for imme‐
15       diate removal from all the keyrings that point to it,  after  which  it
16       will  be  deleted.   The  key will be ignored by all searches once this
17       function is called even if it is not yet fully dealt with.
18
19       The caller must have search permission on a key to be able  to  invali‐
20       date it.
21

RETURN VALUE

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

ERRORS

27       ENOKEY The key specified is invalid.
28
29       EKEYEXPIRED
30              The key specified has expired.
31
32       EKEYREVOKED
33              The key specified had been revoked.
34
35       EACCES The key exists, but is not searchable by the calling process.
36

LINKING

38       This is a library function that can  be  found  in  libkeyutils.   When
39       linking, -lkeyutils should be specified to the linker.
40

SEE ALSO

42       keyctl(1), add_key(2), keyctl(2), request_key(2), keyctl(3),
43       keyrings(7), keyutils(7)
44
45
46
47Linux                             29 Aug 2013             KEYCTL_INVALIDATE(3)
Impressum