Function report |
Source Code:kernel\auditfilter.c |
Create Date:2022-07-28 11:25:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Duplicate an audit rule. This will be a deep copy with the exception* of the watch - that pointer is carried over. The LSM specific fields* will be updated in the copy. The point is to be able to replace the old
Proto:struct audit_entry *audit_dupe_rule(struct audit_krule *old)
Type:struct audit_entry
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct audit_krule * | old |
| 813 | fcount = field_count |
| 817 | err = 0 |
| 820 | If Value for the false possibility is greater at compile time(!entry) Then Return ERR_PTR( - ENOMEM) |
| 833 | field_count = field_count |
| 843 | No 3D Now!(fields, fields, sizeof(structaudit_field) * fcount) |
| 849 | Case type == security label user |
| 850 | Case type == security label role |
| 851 | Case type == security label type |
| 852 | Case type == security label sensitivity label |
| 853 | Case type == security label clearance label |
| 854 | Case type == AUDIT_OBJ_USER |
| 855 | Case type == AUDIT_OBJ_ROLE |
| 856 | Case type == AUDIT_OBJ_TYPE |
| 857 | Case type == AUDIT_OBJ_LEV_LOW |
| 858 | Case type == AUDIT_OBJ_LEV_HIGH |
| 861 | Break |
| 862 | Case type == AUDIT_FILTERKEY |
| 863 | fk = kstrdup( ties events to rules , GFP_KERNEL) |
| 864 | If Value for the false possibility is greater at compile time(!fk) Then err = -ENOMEM |
| 866 | Else ties events to rules = fk |
| 868 | Break |
| 870 | err = audit_dupe_exe(new, old) |
| 871 | Break |
| 873 | If err Then |
| 881 | If associated watch Then |
| 886 | Return entry |
| Name | Describe |
|---|---|
| update_lsm_rule | |
| audit_update_watch | Update inode info in audit rules based on filesystem event. |
| 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 |