函数逻辑报告 |
Source Code:security\keys\keyring.c |
Create Date:2022-07-27 19:52:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:keyring_restrict - Look up and apply a restriction to a keyring*@keyring_ref: The keyring to be restricted*@type: The key type that will provide the restriction checker.*@restriction: The restriction options to apply to the keyring
函数原型:int keyring_restrict(key_ref_t keyring_ref, const char *type, const char *restriction)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
key_ref_t | keyring_ref | |
const char * | type | |
const char * | restriction |
1029 | struct key_type * restrict_type = NULL |
1031 | ret等于0 |
1033 | keyring等于key_ref_to_ptr(keyring_ref) |
1036 | 如果 type of key 不等于key_type_keyring则返回:负ENOTDIR |
1039 | 如果非type则 |
1041 | 否则 |
1042 | restrict_type等于Find and lock the specified key type against removal.* We return with the sem read-locked if successful. If the type wasn't* available -ENOKEY is returned instead. |
1047 | 如果非lookup_restriction则 |
1055 | 如果是错误则 |
1060 | lock for writing |
1061 | lock for writing |
1065 | 否则如果Check for restriction cycles that would prevent keyring garbage collection.* keyring_serialise_restrict_sem must be held.则ret等于负EDEADLK |
1070 | lease a write lock |
1071 | lease a write lock |
1073 | 如果ret小于0则 |
1075 | 释放内存 |
1078 | error : |
1082 | 返回:ret |
名称 | 描述 |
---|---|
keyctl_restrict_keyring | 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |