函数逻辑报告 |
Source Code:kernel\cred.c |
Create Date:2022-07-27 10:33:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:prepare_kernel_cred - Prepare a set of credentials for a kernel service*@daemon: A userspace daemon to be used as a reference* Prepare a set of credentials for a kernel service
函数原型:struct cred *prepare_kernel_cred(struct task_struct *daemon)
返回类型:struct cred
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | daemon |
686 | new等于kmem_cache_alloc(cred_jar, GFP_KERNEL) |
687 | 如果非new则返回:NULL |
692 | 如果daemon则old等于get_task_cred - Get another task's objective credentials*@task: The task to query* Get the objective credentials of a task, pinning them so that they can't go* away |
697 | validate_creds(old) |
700 | Can we skip RCU deletion? 等于0 |
701 | atomic_set( & usage, 1) |
702 | set_cred_subscribers(new, 0) |
708 | keyring inherited over fork = NULL |
709 | keyring private to this process = NULL |
710 | keyring private to this thread = NULL |
711 | assumed request_key authority = NULL |
716 | subjective LSM security = NULL |
718 | 如果security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT)小于0则转到:error |
722 | validate_creds(new) |
723 | 返回:new |
725 | error : |
728 | 返回:NULL |
名称 | 描述 |
---|---|
call_usermodehelper_exec_async | This is the task which runs the usermode application |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |