Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:setup_new_exec

Proto:void setup_new_exec(struct linux_binprm *bprm)

Type:void

Parameter:

TypeParameterName
struct linux_binprm *bprm
1340  secureexec |= cap_elevated
1342  If secureexec Then
1344  pdeath_signal = 0
1353  If rlim_cur > Limit the stack by to some sane default: root can always* increase this limit if needed.. 8MB seems reasonable. Then 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  If interp_flags & BINPRM_FLAGS_ENFORCE_NONDUMP || Not (uid_eq(current_euid(), current_uid()) && gid_eq(current_egid(), current_gid())) Then set_dumpable stores three-value SUID_DUMP_* into mm->flags.
1370  Else 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.
Caller
NameDescribe
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