函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:30:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:selinux_file_permission

函数原型:static int selinux_file_permission(struct file *file, int mask)

返回类型:int

参数:

类型参数名称
struct file *file
intmask
3545  inode等于file_inode(file)
3546  fsec等于selinux_file(file)
3548  sid等于get the subjective security ID of the current task
3550  如果非mask则返回:0
3554  isec等于Get the security label of an inode.
3555  如果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)则返回:0
3560  返回:le security operations