Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\audit.h Create Date:2022-07-28 07:11:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:audit_inode_child

Proto:static inline void audit_inode_child(struct inode *parent, const struct dentry *dentry, const unsigned char type)

Type:void

Parameter:

TypeParameterName
struct inode *parent
const struct dentry *dentry
const unsigned chartype

NULL

Caller
NameDescribe
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