函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bprm_fill_uid

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

返回类型:void

参数:

类型参数名称
struct linux_binprm *bprm
1526  euid等于current_euid()
1527  egid等于current_egid()
1529  如果非mnt_may_suid(mnt)则返回
1532  如果task_no_new_privs(当前进程)则返回
1535  inode等于d_inode
1536  mode等于READ_ONCE(i_mode)
1537  如果非mode按位与S_ISUID按位或S_ISGID的值的值则返回
1541  inode_lock(inode)
1544  mode等于i_mode
1545  uid等于i_uid
1546  gid等于i_gid
1547  inode_unlock(inode)
1550  如果非kuid_has_mapping(user_ns, uid)或非kgid_has_mapping(user_ns, gid)则返回
1554  如果mode按位与S_ISUID
1555  per_clear或等于Security-relevant compatibility flags that must be* cleared upon setuid or setgid exec:
1556  euid等于uid
1559  如果mode按位与S_ISGID按位或S_IXGRP的值的值恒等于S_ISGID按位或S_IXGRP的值则
1560  per_clear或等于Security-relevant compatibility flags that must be* cleared upon setuid or setgid exec:
1561  egid等于gid
调用者
名称描述
prepare_binprmFill 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).