lapi/keyctl.h: add a few missing definitions
PATCH 1/4 lapi/keyctl.h: add a few missing definitions
From: Eric Biggers <[email protected]>
KEYCTL_REVOKE, KEYCTL_READ, KEY_SPEC_PROCESS_KEYRING, and KEY_SPEC_USER_SESSION_KEYRING are used by existing tests. KEY_SPEC_USER_KEYRING will be used by an upcoming test.
Signed-off-by Eric Biggers <[email protected]>
--- include/lapi/keyctl.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
include/lapi/keyctl.h +20 -0
@@ -81,6 +81,10 @@ static inline long keyctl(int cmd, ...)# define KEYCTL_UPDATE 2#endif +#ifndef KEYCTL_REVOKE +# define KEYCTL_REVOKE 3 +#endif +#ifndef KEYCTL_SETPERM # define KEYCTL_SETPERM 5#endif
@@ -89,14 +93,30 @@ static inline long keyctl(int cmd, ...)# define KEYCTL_UNLINK 9#endif +#ifndef KEYCTL_READ +# define KEYCTL_READ 11 +#endif +#ifndef KEY_SPEC_THREAD_KEYRING # define KEY_SPEC_THREAD_KEYRING -1#endif +#ifndef KEY_SPEC_PROCESS_KEYRING +# define KEY_SPEC_PROCESS_KEYRING -2 +#endif +#ifndef KEY_SPEC_SESSION_KEYRING # define KEY_SPEC_SESSION_KEYRING -3#endif +#ifndef KEY_SPEC_USER_KEYRING +# define KEY_SPEC_USER_KEYRING -4 +#endif + +#ifndef KEY_SPEC_USER_SESSION_KEYRING +# define KEY_SPEC_USER_SESSION_KEYRING -5 +#endif +#ifndef KEY_REQKEY_DEFL_THREAD_KEYRING # define KEY_REQKEY_DEFL_THREAD_KEYRING 1#endif
Signature · 1 line
2.14.2.920.gcf0c67979c-goog