Function report |
Source Code:security\apparmor\lsm.c |
Create Date:2022-07-28 19:53:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:common_mmap
Proto:static int common_mmap(const char *op, struct file *file, unsigned long prot, unsigned long flags, bool in_atomic)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | op | |
struct file * | file | |
unsigned long | prot | |
unsigned long | flags | |
bool | in_atomic |
496 | mask = 0 |
501 | If prot & page can be read Then mask |= MAY_READ |
507 | If prot & page can be written && Not (flags & Changes are private ) Then mask |= MAY_WRITE |
509 | If prot & page can be executed Then mask |= AA_EXEC_MMAP |
512 | Return common_file_perm(op, file, mask, in_atomic) |
Name | Describe |
---|---|
apparmor_mmap_file | |
apparmor_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 |