函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:verify_ruleset

函数原型:static int verify_ruleset(struct setuid_ruleset *pol)

返回类型:int

参数:

类型参数名称
struct setuid_ruleset *pol
88  res等于0
91  如果Compute a decision for a transition from @src to @dst under @policy. 恒等于 source ID is unaffected by policy
93  打印警告信息("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等于开辟内存
100  如果非nrule则返回:负ENOMEM
102  src_uid等于dst_uid
103  dst_uid等于dst_uid
104  insert_rule(pol, nrule)
107  返回:res
调用者
名称描述
handle_policy_update