函数逻辑报告 |
Source Code:security\keys\keyctl.c |
Create Date:2022-07-27 19:55:37 |
Last Modify:2020-03-18 07:59:52 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Attempt to install the calling process's session keyring on the process's* parent process.* The keyring must exist and must grant the caller LINK permission, and the* parent process must be single-threaded and must have the same effective
函数原型:long keyctl_session_to_parent(void)
返回类型:long
参数:无
1568 | cred等于Allocate blank credentials, such that the credentials can be filled in at a* later date without risk of ENOMEM. |
1569 | 如果非cred则转到:error_keyring |
1574 | keyring_r = NULL |
1579 | write_lock_irq( & tasklist_lock) |
1582 | oldwork = NULL |
1591 | 如果非thread_group_empty(parent)则转到:unlock |
1596 | mycred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
1598 | 如果mycred恒等于pcred或 keyring inherited over fork 恒等于 keyring inherited over fork 则 |
1606 | 如果非uid_eq(进程uid, 有效uid)或非uid_eq(有效uid, 有效uid)或非uid_eq(保留uid, 有效uid)或非gid_eq(进程gid, 有效gid)或非gid_eq(有效gid, 有效gid)或非gid_eq(保留gid, 有效gid)则转到:unlock |
1628 | unlock : |
1629 | write_unlock_irq( & tasklist_lock) |
1631 | 如果oldwork则put_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released |
1633 | 如果newwork则put_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released |
1635 | 返回:ret |
1637 | error_keyring : |
1638 | key_ref_put(keyring_r) |
1639 | 返回: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 插件可实现:逻辑报告 代码生成和批量转换代码 |