函数逻辑报告 |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-27 19:54:15 |
Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Update a key's data payload from the given data.* The key must grant the caller Write permission and the key type must support* updating for this to work. A negative key can be positively instantiated* with this call.* If successful, 0 will be returned
函数原型:long keyctl_update_key(key_serial_t id, const void __user *_payload, size_t plen)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
key_serial_t | id | |
const void __user * | _payload | |
size_t | plen |
339 | payload = NULL |
340 | 如果plen则 |
347 | 如果copy_from_user(payload, _payload, plen)不等于0则转到:error2 |
353 | 如果是错误则 |
361 | key_ref_put(key_ref) |
362 | error2 : |
364 | error : |
365 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码 |