函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_audit_rule_init

函数原型:int aa_audit_rule_init(unsigned int field, unsigned int op, char *rulestr, void **vrule)

返回类型:int

参数:

类型参数名称
unsigned intfield
unsigned intop
char *rulestr
void **vrule
183  :field恒等于security label role
184  如果op不等于Audit_equalop不等于Audit_not_equal则返回:负EINVAL
186  退出
187  默认
188  返回:负EINVAL
191  rule等于分配内存并置零
193  如果非rule则返回:负ENOMEM
197  label等于aa_label_parse( & label, rulestr, GFP_KERNEL, true, false)
199  如果是错误
200  aa_audit_rule_free(rule)
201  返回:错误
204  vrule等于rule
205  返回:0