函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_set_loginuid - set current task's loginuid*@loginuid: loginuid value* Returns 0.* Called (set) from fs/proc/base.c::proc_loginuid_write().

函数原型:int audit_set_loginuid(kuid_t loginuid)

返回类型:int

参数:

类型参数名称
kuid_tloginuid
2241  sessionid等于AUDIT_SID_UNSET
2245  oldloginuid等于audit_get_loginuid(当前进程)
2246  oldsessionid等于audit_get_sessionid(当前进程)
2248  rc等于audit_set_loginuid_perm(loginuid)
2249  如果rc则转到:out
2253  如果uid_valid(loginuid)则
2254  sessionid等于atomic_inc_return( & global counter which is incremented every time something logs in )
2255  如果此条件成立可能性小(为编译器优化)(sessionid == AUDIT_SID_UNSET)则sessionid等于atomic_inc_return( & global counter which is incremented every time something logs in )
2259  sessionid等于sessionid
2260  loginuid等于loginuid
2261  out :
2262  audit_log_set_loginuid(oldloginuid, loginuid, oldsessionid, sessionid, rc)
2263  返回:rc