函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_path_notify

函数原型:static int selinux_path_notify(const struct path *path, u64 mask, unsigned int obj_type)

返回类型:int

参数:

类型参数名称
const struct path *path
u64mask
unsigned intobj_type
3308  type等于LSM_AUDIT_DATA_PATH
3309  path等于path
3316  :obj_type恒等于FSNOTIFY_OBJ_TYPE_VFSMOUNT
3317  perm等于FILE__WATCH_MOUNT
3318  退出
3319  :obj_type恒等于FSNOTIFY_OBJ_TYPE_SB
3320  perm等于FILE__WATCH_SB
3321  ret等于Check whether a task can perform a filesystem operation.
3323  如果ret则返回:ret
3325  退出
3326  :obj_type恒等于FSNOTIFY_OBJ_TYPE_INODE
3327  perm等于FILE__WATCH
3328  退出
3329  默认
3330  返回:负EINVAL
3334  如果mask按位与ALL_FSNOTIFY_PERM_EVENTSperm或等于FILE__WATCH_WITH_PERM
3338  如果mask按位与File was accessed 按位或access event in a permissions hook 按位或Unwrittable file closed 的值则perm或等于FILE__WATCH_READS
3341  返回:Same as inode_has_perm, but pass explicit audit data containingthe path to help the auditing code to more easily generate thepathname if needed.