Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:56:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Clean up the process immediately after the installation of new credentials* due to exec

Proto:static void selinux_bprm_committed_creds(struct linux_binprm *bprm)

Type:void

Parameter:

TypeParameterName
struct linux_binprm *bprm
2551  tsec = selinux_cred(current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.())
2555  osid = SID prior to last execve
2556  sid = current SID
2558  If sid == osid Then Return
2568  rc = avc_has_perm - Check permissions and perform any appropriate auditing
2570  If rc Then
2571  clear_itimer()
2573  spin_lock_irq( & siglock)
2575  flush_sigqueue( & pending)
2578  sigemptyset( & blocked)
2581  spin_unlock_irq( & siglock)
2586  read_lock( & tasklist_lock)
2587  __wake_up_parent(current process, real_parent)
2588  read_unlock( & tasklist_lock)