Function report |
Source Code:security\integrity\ima\ima_policy.c |
Create Date:2022-07-28 19:59:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ima_lsm_rule_init
Proto:static int ima_lsm_rule_init(struct ima_rule_entry *entry, substring_t *args, int lsm_rule, int audit_type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ima_rule_entry * | entry | |
| substring_t * | args | |
| int | lsm_rule | |
| int | audit_type |
| 815 | If LSM file metadata specific Then Return -EINVAL |
| 819 | If Not audit value Then Return -ENOMEM |
| 822 | audit type = audit_type |
| 823 | result = security_filter_rule_init( audit type , Audit_equal, audit value , & LSM file metadata specific ) |
| 827 | If Not LSM file metadata specific Then |
| 828 | pr_warn("rule for LSM \'%s\' is undefined\n", (char * ) audit value ) |
| 831 | If ima_rules == ima_default_rules Then |
| 832 | kfree( audit value ) |
| 834 | Else result = 0 |
| 838 | Return result |
| Name | Describe |
|---|---|
| ima_parse_rule |
| 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 |