Function report | 
Source Code:security\selinux\hooks.c | 
Create Date:2022-07-28 18:57:39 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:selinux_path_notify
Proto:static int selinux_path_notify(const struct path *path, u64 mask, unsigned int obj_type)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const struct path * | path | |
| u64 | mask | |
| unsigned int | obj_type | 
| 3308 | type = LSM_AUDIT_DATA_PATH | 
| 3316 | Case obj_type == FSNOTIFY_OBJ_TYPE_VFSMOUNT | 
| 3317 | perm = FILE__WATCH_MOUNT | 
| 3318 | Break | 
| 3319 | Case obj_type == FSNOTIFY_OBJ_TYPE_SB | 
| 3320 | perm = FILE__WATCH_SB | 
| 3325 | Break | 
| 3326 | Case obj_type == FSNOTIFY_OBJ_TYPE_INODE | 
| 3327 | perm = FILE__WATCH | 
| 3328 | Break | 
| 3329 | Default | 
| 3330 | Return -EINVAL | 
| 3334 | If mask & ALL_FSNOTIFY_PERM_EVENTS Then perm |= FILE__WATCH_WITH_PERM | 
| 3338 | If mask & ( File was accessed | access event in a permissions hook | Unwrittable file closed ) Then perm |= FILE__WATCH_READS | 
| 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  |