20 Star 0 Fork 3

openKylin/keyutils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
request-key-debug.sh 906 Bytes
一键复制 编辑 原始数据 按行查看 历史
openKylinBot 提交于 2022-05-14 00:27 . Import Upstream version 1.6
#!/bin/sh
###############################################################################
#
# Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
# Written by David Howells (dhowells@redhat.com)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version
# 2 of the License, or (at your option) any later version.
#
###############################################################################
#
# Request key debugging
#
# Call: request-key-debug.sh <keyid> <desc> <callout> <session-keyring>
#
echo RQDebug keyid: $1
echo RQDebug desc: $2
echo RQDebug callout: $3
echo RQDebug session keyring: $4
if [ "$3" != "neg" ]
then
keyctl instantiate $1 "Debug $3" $4 || exit 1
else
cat /proc/keys
echo keyctl negate $1 30 $4
keyctl negate $1 30 $4
fi
exit 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openkylin/keyutils.git
git@gitee.com:openkylin/keyutils.git
openkylin
keyutils
keyutils
openkylin/yangtze

搜索帮助