Function report |
Source Code:security\integrity\ima\ima_policy.c |
Create Date:2022-07-28 19:58:57 |
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_copy_rule
Proto:static struct ima_rule_entry *ima_lsm_copy_rule(struct ima_rule_entry *entry)
Type:struct ima_rule_entry
Parameter:
Type | Parameter | Name |
---|---|---|
struct ima_rule_entry * | entry |
268 | nentry = Allocation memory |
269 | If Not nentry Then Return NULL |
277 | memset(lsm, 0, sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structima_rule_entry, lsm)) |
279 | When i < MAX_LSM_RULES cycle |
280 | If Not audit value Then Continue |
283 | audit type = audit type |
286 | If Not audit value Then Go to out_err |
289 | security_filter_rule_init( audit type , Audit_equal, audit value , & LSM file metadata specific ) |
293 | If Not LSM file metadata specific Then pr_warn("rule for LSM \'%s\' is undefined\n", (char * ) audit value ) |
297 | Return nentry |
299 | out_err : |
300 | ima_lsm_free_rule(nentry) |
301 | Return NULL |
Name | Describe |
---|---|
ima_lsm_update_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 |