函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fsnotify.h Create Date:2022-07-27 13:02:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Simple call site for access decisions

函数原型:static inline int fsnotify_perm(struct file *file, int mask)

返回类型:int

参数:

类型参数名称
struct file *file
intmask
61  path等于f_path
62  inode等于file_inode(file)
63  fsnotify_mask等于0
65  如果f_mode按位与File was opened by fanotify and shouldn't generate fanotify events 则返回:0
67  如果非mask按位与MAY_READ按位或MAY_OPEN的值的值则返回:0
69  如果mask按位与MAY_OPEN
70  fsnotify_mask等于pen event in an permission hook
72  如果f_flags按位与__FMODE_EXEC
75  如果ret则返回:ret
78  否则如果mask按位与MAY_READ
79  fsnotify_mask等于access event in a permissions hook
82  如果S_ISDIR(i_mode)则fsnotify_mask或等于vent occurred against dir
85  返回:Simple wrapper to consolidate calls fsnotify_parent()/fsnotify() when* an event is on a path.
调用者
名称描述
security_file_permission
security_file_open