Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:57:59 |
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_permission
Proto:static int selinux_file_permission(struct file *file, int mask)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
int | mask |
3545 | inode = file_inode(file) |
3546 | fsec = selinux_file(file) |
3550 | If Not mask Then Return 0 |
3555 | If sid == SID of open file description && SID of inode at the time of file open == SID of this object && Policy seqno at the time of file open == avc_policy_seqno( & selinux_state) Then Return 0 |
3560 | Return le security operations |
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 |