summaryrefslogtreecommitdiff
path: root/keyutils.c
diff options
context:
space:
mode:
authorMat Martineau <mathew.j.martineau@linux.intel.com>2017-03-30 16:50:39 -0700
committerDavid Howells <dhowells@redhat.com>2017-04-04 08:52:12 +0100
commita28ec81569084ad9254239af1f16aee35ef0d52b (patch)
treefb34f85e41207142e3a221c151d40a491cdd57ae /keyutils.c
parent95699c4e544635b6c09f12fcfed58dacb14077a0 (diff)
downloadkeyutils-a28ec81569084ad9254239af1f16aee35ef0d52b.tar.gz
Add keyring restriction
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'keyutils.c')
-rw-r--r--keyutils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/keyutils.c b/keyutils.c
index a6325d0..b7bd272 100644
--- a/keyutils.c
+++ b/keyutils.c
@@ -244,6 +244,12 @@ long keyctl_dh_compute(key_serial_t priv, key_serial_t prime,
return keyctl(KEYCTL_DH_COMPUTE, &params, buffer, buflen, 0);
}
+long keyctl_restrict_keyring(key_serial_t keyring, const char *type,
+ const char *restriction)
+{
+ return keyctl(KEYCTL_RESTRICT_KEYRING, keyring, type, restriction);
+}
+
/*****************************************************************************/
/*
* fetch key description into an allocated buffer