函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Compute a decision for a transition from @src to @dst under the active* policy.

函数原型:static enum sid_policy_type setuid_policy_lookup(kuid_t src, kuid_t dst)

返回类型:enum sid_policy_type

参数:

类型参数名称
kuid_tsrc
kuid_tdst
52  result等于 source ID is unaffected by policy
55  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
56  pol等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(safesetid_setuid_rules)
57  如果polresult等于Compute a decision for a transition from @src to @dst under @policy.
59  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
60  返回:result
调用者
名称描述
safesetid_security_capable
uid_permitted_for_credCheck whether a caller with old credentials @old is allowed to switch to* credentials that contain @new_uid.
safesetid_task_fix_setuidCheck 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.