Function report | 
Source Code:security\selinux\hooks.c | 
Create Date:2022-07-28 18:58:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:selinux_file_ioctl
Proto:static int selinux_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| unsigned int | cmd | |
| unsigned long | arg | 
| 3614 | cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() | 
| 3615 | error = 0 | 
| 3620 | Case cmd == map access | 
| 3622 | Case cmd == get the block size used for bmap | 
| 3624 | Case cmd == FS_IOC_GETFLAGS | 
| 3626 | Case cmd == FS_IOC_GETVERSION | 
| 3628 | Break | 
| 3630 | Case cmd == FS_IOC_SETFLAGS | 
| 3632 | Case cmd == FS_IOC_SETVERSION | 
| 3634 | Break | 
| 3641 | Break | 
| 3643 | Case cmd == sets one entry in translation table | 
| 3644 | Case cmd == sets one function key string entry | 
| 3647 | Break | 
| 3652 | Default | 
| 3655 | Return error | 
| 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  |