函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Convert a Linux file to an access vector.

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

返回类型:unsigned int

参数:

类型参数名称
struct file *file
2007  av等于0
2009  如果f_mode按位与le is open for reading av或等于FILE__READ
2011  如果f_mode按位与le is open for writing
2012  如果f_flags按位与O_APPENDav或等于FILE__APPEND
2014  否则av或等于FILE__WRITE
2017  如果非av
2021  av等于FILE__IOCTL
2024  返回:av
调用者
名称描述
open_file_to_avConvert a file to an access vector and include the correct open* open permission.
selinux_binder_transfer_file
match_file
selinux_file_receive