函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_inode_child

函数原型:static inline void audit_inode_child(struct inode *parent, const struct dentry *dentry, const unsigned char type)

返回类型:void

参数:

类型参数名称
struct inode *parent
const struct dentry *dentry
const unsigned chartype

NULL

调用者
名称描述
may_deleteCheck whether we can remove a link victim from directory dir, check* whether the type of victim is right.* 1. We can't do it if dir is read-only (done in permission())* 2. We should have write and exec permissions on dir* 3
may_createCheck whether we can create an object with dentry child in directory* dir.* 1. We can't do it if child already exists (open has special treatment for* this case, but since we are inlined it's OK)* 2
lookup_openLook up and maybe create and open the last component
fsnotify_movesnotify_move - file old_name at old_dir was moved to new_name at new_dir
fsnotify_createsnotify_create - 'name' was linked in
fsnotify_linksnotify_link - new hardlink in 'inode' directory* Note: We have to pass also the linked inode ptr as some filesystems leave
fsnotify_mkdirsnotify_mkdir - directory 'name' was created