| Function report | 
| Source Code: security\selinux\hooks.c | Create Date:2022-07-28 18:57:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:selinux_inode_permission
Proto:static int selinux_inode_permission(struct inode *inode, int mask)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| int | mask | 
| 3041 | 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.() | 
| 3044 | flags = mask & called from RCU mode, don't block | 
| 3051 | from_access = mask & MAY_ACCESS | 
| 3052 | mask &= MAY_READ | MAY_WRITE | MAY_EXEC | MAY_APPEND | 
| 3055 | If Not mask Then Return 0 | 
| 3058 | validate_creds(cred) | 
| 3060 | If Value for the false possibility is greater at compile time(IS_PRIVATE(inode)) Then Return 0 | 
| 3074 | audited = avc_audit_required(perms, & avd, rc, from_access ? FILE__AUDIT_ACCESS : 0, & denied) | 
| 3077 | If Value is more likely to compile time(!audited) Then Return rc | 
| 3081 | If flags & called from RCU mode, don't block Then Return -ECHILD | 
| 3087 | Return rc | 
| 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 |