Re: [PATCH] implement in-kernel keys & keyring management
From: David Howells
Date: Mon Aug 09 2004 - 04:47:44 EST
Linus Torvalds <torvalds@xxxxxxxx> wrote:
> If you want to use netlink, do so. But do it from the /sbin/request-key
> script or binary.
I've rewritten my example request-key program to get a key holding the
real key creation program from a key in the user's session key, so that, say,
a desktop such as KDE could supply a GUI front end.
http://people.redhat.com/~dhowells/keys/request-key.c
http://people.redhat.com/~dhowells/keys/request-key-dhowells.sh
So as me, I can do:
keyctl add user request-key:create /tmp/request-key-dhowells.sh @s
And then:
keyctl request user metal:copper
And the request-key program will change to my UID/GID, look around for the a
key telling it which program to run, and then run my default script.
David
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/