函数逻辑报告

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

函数名称:determine how safe it is to execute the proposed program* - the caller must hold ->cred_guard_mutex to protect against* PTRACE_ATTACH or seccomp thread-sync

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

返回类型:void

参数:

类型参数名称
struct linux_binprm *bprm
1483  p等于当前进程
1486  如果ptraceunsafe或等于LSM_UNSAFE_PTRACE
1493  如果task_no_new_privs(当前进程)则unsafe或等于LSM_UNSAFE_NO_NEW_PRIVS
1496  t等于p
1497  n_fs等于1
1498  加自旋锁
1499  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1501  如果fs恒等于fsn_fs自加
1504  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1506  如果users大于n_fsunsafe或等于prm->unsafe reasons
1508  否则in_exec等于1
1510  自旋锁解锁
调用者
名称描述
__do_execve_filesys_execve() executes a new program.