---
name: "audit_compare_dname_path"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/audit_compare_dname_path"
---

# audit\_compare\_dname\_path(9)

compare given dentry name with last component in given path. Return of 0 indicates a match.

## NAME

audit\_compare\_dname\_path - compare given dentry name with last component in given path. Return of 0 indicates a match.

## SYNOPSIS

**int audit\_compare\_dname\_path(const char \*** *dname***, const char \*** *path***, int** *parentlen***);**

## ARGUMENTS

*dname*

dentry name that we're comparing

*path*

full pathname that we're comparing

*parentlen*

length of the parent if known. Passing in AUDIT\_NAME\_FULL here indicates that we must compute this value.

## COPYRIGHT
