Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH] implement in-kernel keys & keyring management | Date | Mon, 09 Aug 2004 10:45:58 +0100 |
| |
Linus Torvalds <torvalds@osdl.org> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |