| Function report | 
| Source Code: fs\notify\fanotify\fanotify.c | Create Date:2022-07-28 20:18:06 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Wait for response to permission event
Proto:static int fanotify_get_response(struct fsnotify_group *group, struct fanotify_perm_event *event, struct fsnotify_iter_info *iter_info)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct fsnotify_group * | group | |
| struct fanotify_perm_event * | event | |
| struct fsnotify_iter_info * | iter_info | 
| 98 | If ret < 0 Then | 
| 101 | If state of the event == FAN_EVENT_REPORTED Then | 
| 104 | spin_unlock( & protect the notification_list ) | 
| 105 | Return ret | 
| 108 | If state of the event == FAN_EVENT_INIT Then fsnotify_remove_queued_event(group, & fse) | 
| 115 | spin_unlock( & protect the notification_list ) | 
| 116 | Go to out | 
| 121 | Case & == Legit userspace responses to a _PERM event | 
| 122 | ret = 0 | 
| 123 | Break | 
| 124 | Case & == FAN_DENY | 
| 125 | Default | 
| 130 | If userspace answer to the event & Bit mask to create audit record for result Then audit_fanotify(userspace answer to the event & ~Bit mask to create audit record for result ) | 
| 135 | out : | 
| 136 | fsnotify_destroy_event(group, & fse) | 
| 138 | Return ret | 
| Name | Describe | 
|---|---|
| fanotify_handle_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 |