Function report |
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 activity | Download SCCT | Chinese |
Name:aa_audit_rule_init
Proto:int aa_audit_rule_init(unsigned int field, unsigned int op, char *rulestr, void **vrule)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | field | |
| unsigned int | op | |
| 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). |
| 197 | label = aa_label_parse( & label, rulestr, GFP_KERNEL, true, false) |
| 200 | aa_audit_rule_free(rule) |
| 205 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |