函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Convert a file to an access vector and include the correct open* open permission.

函数原型:static inline unsigned int open_file_to_av(struct file *file)

返回类型:unsigned int

参数:

类型参数名称
struct file *file
2033  av等于Convert a Linux file to an access vector.
2034  inode等于file_inode(file)
2036  如果selinux_policycap_openperm()且s_magic不等于SOCKFS_MAGICav或等于FILE__OPEN
2040  返回:av
调用者
名称描述
selinux_file_open