2 ###############################################################################
4 # Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
5 # Written by David Howells (dhowells@redhat.com)
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version
10 # 2 of the License, or (at your option) any later version.
12 ###############################################################################
14 # Request key debugging
16 # Call: request-key-debug.sh <keyid> <desc> <callout> <session-keyring>
19 echo RQDebug keyid: $1
21 echo RQDebug callout: $3
22 echo RQDebug session keyring: $4
26 keyctl instantiate $1 "Debug $3" $4 || exit 1
29 echo keyctl negate $1 30 $4
30 keyctl negate $1 30 $4