函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:audit_compare_dname_path - compare given dentry name with last component in* given path. Return of 0 indicates a match.*@dname: dentry name that we're comparing*@path: full pathname that we're comparing*@parentlen: length of the parent if known

函数原型:int audit_compare_dname_path(const struct qstr *dname, const char *path, int parentlen)

返回类型:int

参数:

类型参数名称
const struct qstr *dname
const char *path
intparentlen
1308  dlen等于len
1309  pathlen等于strlen - Find the length of a string*@s: The string to be sized
1310  如果pathlen小于dlen则返回:1
1313  parentlen等于如果parentlen恒等于Indicates that audit should log the full pathname. parent_len - find the length of the parent portion of a pathname*@path: pathname of which to determine length否则parentlen
1314  如果pathlenparentlen不等于dlen则返回:1
1317  p等于pathparentlen
1319  返回:字符串指定长度比较
调用者
名称描述
__audit_inode_child__audit_inode_child - collect inode info for created/removed objects*@parent: inode of dentry parent*@dentry: dentry being audited*@type: AUDIT_TYPE_* value that we're looking for* For syscalls that create or remove filesystem objects, audit_inode
audit_update_watchUpdate inode info in audit rules based on filesystem event.
audit_mark_handle_eventUpdate mark data in audit rules based on fsnotify events.