函数逻辑报告 |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-27 19:55:00 |
| Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Change the permission mask on a key.* The key must grant the caller Setattr permission for this to work, though* the key need not be fully instantiated yet. If the caller does not have
函数原型:long keyctl_setperm_key(key_serial_t id, key_perm_t perm)
返回类型:long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| key_serial_t | id | |
| key_perm_t | perm |
| 1004 | 如果perm按位与KEY_POS_ALL按位或KEY_USR_ALL按位或KEY_GRP_ALL按位或KEY_OTH_ALL的值的反则转到:error |
| 1009 | 如果是错误则 |
| 1014 | key等于key_ref_to_ptr(key_ref) |
| 1018 | lock for writing |
| 1021 | 如果操作权限检查或uid_eq(uid, current_fsuid())则 |
| 1022 | access permissions 等于perm |
| 1023 | ret等于0 |
| 1026 | lease a write lock |
| 1028 | error : |
| 1029 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码 |