Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:verify_ruleset

Proto:static int verify_ruleset(struct setuid_ruleset *pol)

Type:int

Parameter:

TypeParameterName
struct setuid_ruleset *pol
88  res = 0
91  If Compute a decision for a transition from @src to @dst under @policy. == source ID is unaffected by policy Then
93  pr_warn("insecure policy detected: uid %d is constrained but transitively unconstrained through uid %d\n", __kuid_val(src_uid), __kuid_val(dst_uid))
96  res = -EINVAL
99  nrule = Allocation memory
100  If Not nrule Then Return -ENOMEM
102  src_uid = dst_uid
103  dst_uid = dst_uid
104  insert_rule(pol, nrule)
107  Return res
Caller
NameDescribe
handle_policy_update