summaryrefslogtreecommitdiff
path: root/keyutils.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2011-03-11 01:00:29 +0000
committerDavid Howells <dhowells@redhat.com>2011-03-11 01:00:29 +0000
commitd09ebcd5440332ccdc88192a02082d9f333244cf (patch)
treeac638e2fc7d491b681341bb375c1a3c60633affd /keyutils.h
parenta0c9230a77aface41793eb9fe70c5282703c26a5 (diff)
downloadkeyutils-d09ebcd5440332ccdc88192a02082d9f333244cf.tar.gz
Lib: Support keyctl(KEYCTL_REJECT)KEYUTILS_1.4
Support the negate key with specific rejection error keyctl op, providing it as keyctl_reject(). Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'keyutils.h')
-rw-r--r--keyutils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/keyutils.h b/keyutils.h
index e581a01..4e7b909 100644
--- a/keyutils.h
+++ b/keyutils.h
@@ -1,6 +1,6 @@
/* keyutils.h: key utility library interface
*
- * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
+ * Copyright (C) 2005,2011 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
@@ -91,6 +91,7 @@ typedef uint32_t key_perm_t;
#define KEYCTL_ASSUME_AUTHORITY 16 /* assume authority to instantiate key */
#define KEYCTL_GET_SECURITY 17 /* get key security label */
#define KEYCTL_SESSION_TO_PARENT 18 /* set my session keyring on my parent process */
+#define KEYCTL_REJECT 19 /* reject a partially constructed key */
/*
* syscall wrappers
@@ -136,6 +137,8 @@ extern long keyctl_set_timeout(key_serial_t key, unsigned timeout);
extern long keyctl_assume_authority(key_serial_t key);
extern long keyctl_get_security(key_serial_t key, char *buffer, size_t buflen);
extern long keyctl_session_to_parent(void);
+extern long keyctl_reject(key_serial_t id, unsigned timeout, unsigned error,
+ key_serial_t ringid);
/*
* utilities