Function report |
Source Code:kernel\audit_watch.c |
Create Date:2022-07-28 11:29:17 |
Last Modify:2020-03-17 17:15:07 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Find a matching watch entry, or add this one.* Caller must hold audit_filter_mutex.
Proto:int audit_add_watch(struct audit_krule *krule, struct list_head **list)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct audit_krule * | krule | |
struct list_head ** | list |
403 | watch = associated watch |
406 | ret = 0 |
413 | audit_get_watch(watch) |
421 | mutex_lock( & audit_filter_mutex) |
423 | If ret Then |
424 | audit_put_watch(watch) |
425 | Return ret |
429 | parent = Find and return the audit_parent on the given inode. If found a reference* is taken on this parent. |
430 | If Not parent Then |
440 | h = audit_hash_ino((u32)associated inode number ) |
441 | list = Hash for inode-based rules [h] |
442 | error : |
443 | path_put( & parent_path) |
444 | audit_put_watch(watch) |
445 | Return ret |
Name | Describe |
---|---|
audit_add_rule | Add rule to given filterlist if not a duplicate. |
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 |