Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:selinux_file_permission

Proto:static int selinux_file_permission(struct file *file, int mask)

Type:int

Parameter:

TypeParameterName
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  If Not mask Then Return 0
3554  isec = Get the security label of an inode.
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