[PATCH] Keys: Pass session keyring to call_usermodehelper()

The attached patch makes it possible to pass a session keyring through to the
process spawned by call_usermodehelper().  This allows patch 3/3 to pass an
authorisation key through to /sbin/request-key, thus permitting better access
controls when doing just-in-time key creation.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
David Howells
2005-06-23 22:00:51 -07:00
committed by Linus Torvalds
parent 76d8aeabfe
commit 7888e7ff4e
4 changed files with 35 additions and 7 deletions

View File

@@ -88,7 +88,7 @@ static int call_request_key(struct key *key,
argv[i] = NULL;
/* do it */
return call_usermodehelper(argv[0], argv, envp, 1);
return call_usermodehelper_keys(argv[0], argv, envp, NULL, 1);
} /* end call_request_key() */