summaryrefslogtreecommitdiff
path: root/keyutils.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-02-26 20:28:22 +0000
committerDavid Howells <dhowells@redhat.com>2010-02-26 20:28:22 +0000
commit79f87dc5e988dc2744bf40c5b8c6557f0cf58fc8 (patch)
tree5bcc4126724ff722434a61a149db85d6e2aa0662 /keyutils.c
parent3a8cc353e0cc88a84f5425bfef1be82933f3646d (diff)
downloadkeyutils-79f87dc5e988dc2744bf40c5b8c6557f0cf58fc8.tar.gz
Add keyctl command to give the parent process a new keyring
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'keyutils.c')
-rw-r--r--keyutils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyutils.c b/keyutils.c
index 7c8cea6..21d0ab0 100644
--- a/keyutils.c
+++ b/keyutils.c
@@ -170,6 +170,11 @@ long keyctl_get_security(key_serial_t id, char *buffer, size_t buflen)
return keyctl(KEYCTL_GET_SECURITY, id, buffer, buflen);
}
+long keyctl_session_to_parent(void)
+{
+ return keyctl(KEYCTL_SESSION_TO_PARENT);
+}
+
/*****************************************************************************/
/*
* fetch key description into an allocated buffer