Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Convert a file to an access vector and include the correct open* open permission.

Proto:static inline unsigned int open_file_to_av(struct file *file)

Type:unsigned int

Parameter:

TypeParameterName
struct file *file
2033  av = Convert a Linux file to an access vector.
2034  inode = file_inode(file)
2036  If selinux_policycap_openperm() && s_magic != SOCKFS_MAGIC Then av |= FILE__OPEN
2040  Return av
Caller
NameDescribe
selinux_file_open