Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:le security operations

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

Type:int

Parameter:

TypeParameterName
struct file *file
intmask
3532  cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
3533  inode = file_inode(file)
3536  If f_flags & O_APPEND && mask & MAY_WRITE Then mask |= MAY_APPEND
3539  Return Check whether a task can use an open file descriptor toaccess an inode in a given way. Check access to thedescriptor itself, and then use dentry_has_perm tocheck a particular permission to the file.Access to the descriptor is implicitly granted if it
Caller
NameDescribe
selinux_file_permission