Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\safesetid\lsm.c Create Date:2022-07-28 19:55:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Compute a decision for a transition from @src to @dst under @policy.

Proto:enum sid_policy_type _setuid_policy_lookup(struct setuid_ruleset *policy, kuid_t src, kuid_t dst)

Type:enum sid_policy_type

Parameter:

TypeParameterName
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  If Not uid_eq(src_uid, src) Then Continue
39  If uid_eq(dst_uid, dst) Then Return SIDPOL_ALLOWED
41  result = source ID is affected by policy
43  Return result
Caller
NameDescribe
setuid_policy_lookupCompute a decision for a transition from @src to @dst under the active* policy.
verify_ruleset
handle_policy_update