Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:58:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:file_map_prot_check
Proto:static int file_map_prot_check(struct file *file, unsigned long prot, int shared)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | file | |
| unsigned long | prot | |
| int | shared |
| 3662 | 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.() |
| 3664 | rc = 0 |
| 3666 | If default_noexec && prot & page can be executed && ( Not file || IS_PRIVATE(file_inode(file)) || Not shared && prot & page can be written ) Then |
| 3681 | If file Then |
| 3683 | av = FILE__READ |
| 3686 | If shared && prot & page can be written Then av |= FILE__WRITE |
| 3689 | If prot & page can be executed Then av |= FILE__EXECUTE |
| 3695 | error : |
| 3696 | Return rc |
| Name | Describe |
|---|---|
| selinux_mmap_file | |
| selinux_file_mprotect |
| 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 |