Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:58:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_kernel_module_from_file

Proto:static int selinux_kernel_module_from_file(struct file *file)

Type:int

Parameter:

TypeParameterName
struct file *file
3992  sid = get the subjective security ID of the current task
3996  If (file == NULL) Then Return 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  If sid != SID of open file description Then
4008  rc = avc_has_perm - Check permissions and perform any appropriate auditing
4010  If rc Then Return rc
4014  isec = Get the security label of an inode.
4015  Return avc_has_perm - Check permissions and perform any appropriate auditing
Caller
NameDescribe
selinux_kernel_read_file
selinux_kernel_load_data