函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_kernel_module_from_file

函数原型:static int selinux_kernel_module_from_file(struct file *file)

返回类型:int

参数:

类型参数名称
struct file *file
3992  sid等于get the subjective security ID of the current task
3996  如果(file == NULL)则返回:avc_has_perm - Check permissions and perform any appropriate auditing
4003  type等于LSM_AUDIT_DATA_FILE
4004  file等于file
4006  fsec等于selinux_file(file)
4007  如果sid不等于 SID of open file description
4008  rc等于avc_has_perm - Check permissions and perform any appropriate auditing
4010  如果rc则返回:rc
4014  isec等于Get the security label of an inode.
4015  返回:avc_has_perm - Check permissions and perform any appropriate auditing
调用者
名称描述
selinux_kernel_read_file
selinux_kernel_load_data