Function report |
Source Code:kernel\audit_fsnotify.c |
Create Date:2022-07-28 11:29:46 |
| Last Modify:2020-03-17 18:09:23 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:audit_alloc_mark
Proto:struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pathname, int len)
Type:struct audit_fsnotify_mark
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct audit_krule * | krule | |
| char * | pathname | |
| int | len |
| 85 | dentry = kern_path_locked(pathname, & path) |
| 89 | inode_unlock(inode) |
| 91 | audit_mark = 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). |
| 93 | audit_mark = ERR_PTR( - ENOMEM) |
| 94 | Go to out |
| 99 | sertion path = pathname |
| 103 | ret = fsnotify_add_inode_mark( & snotify mark on the inode , inode, true) |
| 104 | If ret < 0 Then |
| 106 | audit_mark = ERR_PTR(ret) |
| 108 | out : |
| 111 | Return audit_mark |
| Name | Describe |
|---|---|
| audit_data_to_entry | Translate struct audit_rule_data to kernel's rule representation. |
| audit_dupe_exe |
| 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 |