函数逻辑报告

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

函数名称:would_dump

函数原型:void would_dump(struct linux_binprm *bprm, struct file *file)

返回类型:void

参数:

类型参数名称
struct linux_binprm *bprm
struct file *file
1314  inode等于file_inode(file)
1315  如果inode_permission(inode, MAY_READ)小于0则
1317  interp_flags或等于BINPRM_FLAGS_ENFORCE_NONDUMP
1320  user_ns等于old等于user_ns
1321 user_ns不等于userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?且非privileged_wrt_inode_uidgid - Do capabilities in the namespace work over the inode?*@ns: The user namespace in question*@inode: The inode in question* Return true if the inode uid and gid are within the namespace.循环
1323  user_ns等于parent
1325  如果old不等于user_ns
1326  user_ns等于get_user_ns(user_ns)
1327  put_user_ns(old)
调用者
名称描述
__do_execve_filesys_execve() executes a new program.
load_misc_binaryhe loader itself
load_elf_binary
load_elf_fdpic_binaryload an fdpic binary into various bits of memory