Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_audit_rule_init

Proto:int aa_audit_rule_init(unsigned int field, unsigned int op, char *rulestr, void **vrule)

Type:int

Parameter:

TypeParameterName
unsigned intfield
unsigned intop
char *rulestr
void **vrule
183  Case field == security label role
184  If op != Audit_equal && op != Audit_not_equal Then Return -EINVAL
186  Break
187  Default
188  Return -EINVAL
191  rule = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
193  If Not rule Then Return -ENOMEM
197  label = aa_label_parse( & label, rulestr, GFP_KERNEL, true, false)
199  If IS_ERR(label) Then
200  aa_audit_rule_free(rule)
201  Return PTR_ERR(label)
204  vrule = rule
205  Return 0