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:apparmor_file_open
Proto:static int apparmor_file_open(struct file *file)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file |
406 | error = 0 |
408 | If Not path_mediated_fs(dentry) Then Return 0 |
416 | If in_execve Then |
417 | allow = MAY_EXEC | MAY_READ | AA_EXEC_MMAP |
418 | Return 0 |
421 | label = aa_get_newest_cred_label - obtain the newest label on a cred*@cred: cred to obtain label from (NOT NULL)* Returns: newest version of confining label |
422 | If Not unconfined(label) Then |
423 | inode = file_inode(file) |
431 | aa_put_label(label) |
433 | Return error |
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 |