函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-29 10:33:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Fill the binprm structure from the inode.* Check permissions, then read the first BINPRM_BUF_SIZE bytes* This may be called multiple times for binary chains (scripts for example).

函数原型:int prepare_binprm(struct linux_binprm *bprm)

返回类型:int

参数:

类型参数名称
struct linux_binprm *bprm
1574  pos等于0
1576  bprm_fill_uid(bprm)
1579  retval等于security_bprm_set_creds(bprm)
1580  如果retval则返回:retval
1582  called_set_creds等于1
1584  memset(buf, 0, sizeof(linux_binprm->buf) )
1585  返回:kernel_read(file, buf, sizeof(linux_binprm->buf) , & pos)
调用者
名称描述
__do_execve_filesys_execve() executes a new program.
load_em86
load_misc_binaryhe loader itself
load_script