函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:setup_new_exec

函数原型:void setup_new_exec(struct linux_binprm *bprm)

返回类型:void

参数:

类型参数名称
struct linux_binprm *bprm
1340  secureexec或等于cap_elevated
1342  如果secureexec
1344  pdeath_signal等于0
1353  如果rlim_cur大于Limit the stack by to some sane default: root can always* increase this limit if needed.. 8MB seems reasonable.rlim_cur等于Limit the stack by to some sane default: root can always* increase this limit if needed.. 8MB seems reasonable.
1357  arch_pick_mmap_layout(mm, & rlim_stack)
1359  sas_ss_sp等于sas_ss_size等于0
1366  如果interp_flags按位与BINPRM_FLAGS_ENFORCE_NONDUMP或非uid_eq(current_euid(), current_uid())且gid_eq(current_egid(), current_gid())的值则set_dumpable stores three-value SUID_DUMP_* into mm->flags.
1370  否则set_dumpable stores three-value SUID_DUMP_* into mm->flags.
1373  Called immediately after a successful exec.
1374  perf_event_exec()
1375  These functions flushes out all traces of the currently running executable* so that a new one can be started
1381  task_size等于TASK_SIZE
1385  self_exec_id自加
1386  Flush all handlers for a task.
调用者
名称描述
load_aout_binaryThese are the functions used to load a.out style executables and shared* libraries. There is no binary dependent code anywhere else.
load_elf_binary
load_elf_fdpic_binaryload an fdpic binary into various bits of memory
load_flat_file