Function report |
Source Code:kernel\auditsc.c |
Create Date:2022-07-28 11:28:06 |
| Last Modify:2020-03-17 16:31:21 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__audit_inode - store the inode and device from a lookup*@name: name being audited*@dentry: dentry being audited*@flags: attributes for this particular entry
Proto:void __audit_inode(struct filename *name, const struct dentry *dentry, unsigned int flags)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct filename * | name | |
| const struct dentry * | dentry | |
| unsigned int | flags |
| 1947 | context = audit_context() |
| 1950 | parent = flags & dentry represents the parent |
| 1955 | If Not 1 if task is in a syscall Then Return |
| 1960 | When i < field_count cycle |
| 1963 | If type == FileSystem Type && audit_comparator(s_magic, op, val) && action == Do not build context if rule matches Then |
| 1982 | If n Then |
| 1983 | If parent Then |
| 1984 | If cord type == a parent audit record || cord type == we don't know yet Then Go to out |
| 1987 | Else |
| 1988 | If cord type != a parent audit record Then Go to out |
| 1994 | If ino Then |
| 1996 | If ino != Stat data, not accessed from path walking || dev != s_dev Then Continue |
| 1999 | Else if name Then |
| 2001 | If strcmp( pointer to actual string , pointer to actual string ) Then Continue |
| 2003 | Else Continue |
| 2008 | If parent Then |
| 2009 | If cord type == a parent audit record || cord type == we don't know yet Then Go to out |
| 2012 | Else |
| 2013 | If cord type != a parent audit record Then Go to out |
| 2018 | out_alloc : |
| 2020 | n = audit_alloc_name(context, we don't know yet ) |
| 2021 | If Not n Then Return |
| 2023 | If name Then |
| 2028 | out : |
| 2029 | If parent Then |
| 2031 | cord type = a parent audit record |
| 2032 | If flags & audit record should be hidden Then don't log this record = true |
| 2034 | Else |
| 2036 | cord type = a "normal" audit record |
| 2038 | handle_path(dentry) |
| Name | Describe |
|---|---|
| __audit_file |
| 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 |