函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:28:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Prepare a process for imminent new credential changes due to exec

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

返回类型:void

参数:

类型参数名称
struct linux_binprm *bprm
2508  new_tsec等于selinux_cred(w credentials )
2509  如果 current SID 恒等于 SID prior to last execve 则返回
2513  Derived from fs/exec.c:flush_old_files.
2516  pdeath_signal等于0
2528  rc等于avc_has_perm - Check permissions and perform any appropriate auditing
2531  如果rc
2533  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
2534 i小于RLIM_NLIMITS循环
2535  rlim等于rlimi
2536  initrlim等于rlimi
2539  task_unlock(当前进程)
2540  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_POSIX_TIMERS)则Called after updating RLIMIT_CPU to run cpu timer and update* tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if* necessary. Needs siglock protection since other code may update the* expiration cache as well.