| 函数逻辑报告 | 
| Source Code: security\keys\keyctl.c | Create Date:2022-07-27 19:55:41 | 
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Apply a restriction to a given keyring.* The caller must have Setattr permission to change keyring restrictions.* The requested type name may be a NULL pointer to reject all attempts* to link to the keyring. In this case, _restriction must also be NULL.
函数原型:long keyctl_restrict_keyring(key_serial_t id, const char __user *_type, const char __user *_restriction)
返回类型:long
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| key_serial_t | id | |
| const char __user * | _type | |
| const char __user * | _restriction | 
| 1658 | char * restriction = NULL | 
| 1666 | 如果_type则 | 
| 1667 | 如果非_restriction则转到:error | 
| 1670 | ret等于key_get_type_from_user(type, _type, type的长度) | 
| 1675 | 如果是错误则 | 
| 1679 | 否则 | 
| 1680 | 如果_restriction则转到:error | 
| 1685 | 释放内存 | 
| 1686 | error : | 
| 1687 | key_ref_put(key_ref) | 
| 1688 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码 |