函数逻辑报告 |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-27 19:54:36 |
Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Return a description of a key to userspace
函数原型:long keyctl_describe_key(key_serial_t keyid, char __user *buffer, size_t buflen)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
key_serial_t | keyid | |
char __user * | buffer | |
size_t | buflen |
655 | 如果是错误则 |
659 | instkey等于Search the current process's keyrings for the authorisation key for* instantiation of a key. |
660 | 如果非是错误则 |
671 | 转到:error |
674 | okay : |
675 | key等于key_ref_to_ptr(key_ref) |
680 | infobuf等于kasprintf(GFP_KERNEL, "%s;%d;%d;%08x;", name, from_kuid_munged(current_user_ns(), uid), from_kgid_munged(current_user_ns(), gid), access permissions ) |
693 | 如果copy_to_user(buffer, infobuf, infolen)不等于0或copy_to_user(buffer + infolen, description, desclen + 1)不等于0则ret等于负EFAULT |
699 | 释放内存 |
700 | error2 : |
701 | key_ref_put(key_ref) |
702 | error : |
703 | 返回:ret |
名称 | 描述 |
---|---|
SYSCALL_DEFINE5 | The key control system call |
COMPAT_SYSCALL_DEFINE5 | The key control system call, 32-bit compatibility version for 64-bit archs |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |