Function report | 
Source Code:security\selinux\hooks.c | 
Create Date:2022-07-28 18:58:20 | 
| 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_mprotect
Proto:static int selinux_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct vm_area_struct * | vma | |
| unsigned long | reqprot | |
| unsigned long | prot | 
| 3739 | 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.() | 
| 3742 | If checkreqprot Then prot = reqprot | 
| 3745 | If default_noexec && prot & page can be executed && Not (Flags, see mm.h. & VM_EXEC) Then | 
| 3747 | rc = 0 | 
| 3748 | If Our start address within vm_mm. >= start_brk && The first byte after our end addresswithin vm_mm. <= brk Then | 
| 3760 | Else if File we map to (can be NULL). && Serialized by page_table_lock Then | 
| 3774 | Return file_map_prot_check(File we map to (can be NULL). , prot, Flags, see mm.h. & VM_SHARED) | 
| 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  |