函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:enum sid_policy_type _setuid_policy_lookup(struct setuid_ruleset *policy, kuid_t src, kuid_t dst)

返回类型:enum sid_policy_type

参数:

类型参数名称
struct setuid_ruleset *policy
kuid_tsrc
kuid_tdst
34  result等于 source ID is unaffected by policy
36  hash_for_each_possible - iterate over all possible objects hashing to the* same bucket*@name: hashtable to iterate*@obj: the type * to use as a loop cursor for each entry*@member: the name of the hlist_node within the struct*@key: the key of the objects (rules, rule, next, __kuid_val(src))
37  如果非uid_eq(src_uid, src)则继续下一循环
39  如果uid_eq(dst_uid, dst)则返回:SIDPOL_ALLOWED
41  result等于 source ID is affected by policy
43  返回:result
调用者
名称描述
setuid_policy_lookupCompute a decision for a transition from @src to @dst under the active* policy.
verify_ruleset
handle_policy_update