函数逻辑报告 |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-27 19:55:30 |
Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Get a key's the LSM security label.* The key must grant the caller View permission for this to work.* If there's a buffer, then up to buflen bytes of data will be placed into it.* If successful, the amount of information available will be returned,
函数原型:long keyctl_get_security(key_serial_t keyid, char __user *buffer, size_t buflen)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
key_serial_t | keyid | |
char __user * | buffer | |
size_t | buflen |
1496 | 如果是错误则 |
1502 | instkey等于Search the current process's keyrings for the authorisation key for* instantiation of a key. |
1512 | key等于key_ref_to_ptr(key_ref) |
1513 | ret等于security_key_getsecurity(key, & context) |
1514 | 如果ret恒等于0则 |
1521 | 否则如果ret大于0则 |
1531 | 释放内存 |
1534 | key_ref_put(key_ref) |
1535 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码 |