Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-28 20:04:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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).

Proto:int prepare_binprm(struct linux_binprm *bprm)

Type:int

Parameter:

TypeParameterName
struct linux_binprm *bprm
1574  pos = 0
1576  bprm_fill_uid(bprm)
1579  retval = security_bprm_set_creds(bprm)
1580  If retval Then Return retval
1582  called_set_creds = 1
1584  memset(buf, 0, sizeof(linux_binprm->buf) )
1585  Return kernel_read(file, buf, sizeof(linux_binprm->buf) , & pos)
Caller
NameDescribe
__do_execve_filesys_execve() executes a new program.
load_em86
load_misc_binaryhe loader itself
load_script