函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check whether there is either an exception for user under old cred struct to* set*uid to user under new cred struct, or the UID transition is allowed (by* Linux set*uid rules) even without CAP_SETUID.

函数原型:static int safesetid_task_fix_setuid(struct cred *new, const struct cred *old, int flags)

返回类型:int

参数:

类型参数名称
struct cred *new
const struct cred *old
intflags
134  如果Compute a decision for a transition from @src to @dst under the active* policy.恒等于 source ID is unaffected by policy 则返回:0
137  如果Check whether a caller with old credentials @old is allowed to switch to* credentials that contain @new_uid.Check whether a caller with old credentials @old is allowed to switch to* credentials that contain @new_uid.Check whether a caller with old credentials @old is allowed to switch to* credentials that contain @new_uid.Check whether a caller with old credentials @old is allowed to switch to* credentials that contain @new_uid.则返回:0
148  force_sig(SIGKILL)
149  返回:负EACCES