Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/keyutils/request-key-debug.sh @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@68 | 1 #!/bin/sh |
jpayne@68 | 2 ############################################################################### |
jpayne@68 | 3 # |
jpayne@68 | 4 # Copyright (C) 2005 Red Hat, Inc. All Rights Reserved. |
jpayne@68 | 5 # Written by David Howells (dhowells@redhat.com) |
jpayne@68 | 6 # |
jpayne@68 | 7 # This program is free software; you can redistribute it and/or |
jpayne@68 | 8 # modify it under the terms of the GNU General Public License |
jpayne@68 | 9 # as published by the Free Software Foundation; either version |
jpayne@68 | 10 # 2 of the License, or (at your option) any later version. |
jpayne@68 | 11 # |
jpayne@68 | 12 ############################################################################### |
jpayne@68 | 13 # |
jpayne@68 | 14 # Request key debugging |
jpayne@68 | 15 # |
jpayne@68 | 16 # Call: request-key-debug.sh <keyid> <desc> <callout> <session-keyring> |
jpayne@68 | 17 # |
jpayne@68 | 18 |
jpayne@68 | 19 echo RQDebug keyid: $1 |
jpayne@68 | 20 echo RQDebug desc: $2 |
jpayne@68 | 21 echo RQDebug callout: $3 |
jpayne@68 | 22 echo RQDebug session keyring: $4 |
jpayne@68 | 23 |
jpayne@68 | 24 if [ "$3" != "neg" ] |
jpayne@68 | 25 then |
jpayne@68 | 26 keyctl instantiate $1 "Debug $3" $4 || exit 1 |
jpayne@68 | 27 else |
jpayne@68 | 28 cat /proc/keys |
jpayne@68 | 29 echo keyctl negate $1 30 $4 |
jpayne@68 | 30 keyctl negate $1 30 $4 |
jpayne@68 | 31 fi |
jpayne@68 | 32 |
jpayne@68 | 33 exit 0 |