| Function report | 
| Source Code: security\selinux\hooks.c | Create Date:2022-07-28 18:55:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Convert a Linux mode and permission mask to an access vector.
Proto:static inline unsigned int file_mask_to_av(int mode, int mask)
Type:unsigned int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | mode | |
| int | mask | 
| 1979 | av = 0 | 
| 1982 | If mask & MAY_EXEC Then av |= FILE__EXECUTE | 
| 1984 | If mask & MAY_READ Then av |= FILE__READ | 
| 1987 | If mask & MAY_APPEND Then av |= FILE__APPEND | 
| 1989 | Else if mask & MAY_WRITE Then av |= FILE__WRITE | 
| 1992 | Else | 
| 1993 | If mask & MAY_EXEC Then av |= DIR__SEARCH | 
| 1995 | If mask & MAY_WRITE Then av |= DIR__WRITE | 
| 2001 | Return av | 
| Name | Describe | 
|---|---|
| selinux_inode_permission | |
| selinux_revalidate_file_permission | le security operations | 
| 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 |