aa_path_name(9)
π NAME π
Hii bestie, welcome to aa_path_name(9) from the Kernel API Manual! β¨ This one is literally here to get the pathname to a buffer ensure dir / is appended. That's the name energy, preserved and slaying. π«Ά
β¨ SYNOPSIS β¨
int aa_path_name (const struct path *path , int flags , char *buffer ,
const char **name , const char **info , const char *disconnected );
π«Ά ARGUMENTS π«Ά
pathβ the path to the file (NOT NULL). πflagsβ flags controlling path name generation. β¨bufferβ buffer to put the name in (NOT NULL). πnameβ Returns - the generated path name if!error(NOT NULL). πinfoβ Returns - information on why the path lookup failed (MAYBE NULL). π¦disconnectedβ string to prepend to disconnected paths. πΈ
πΈ DESCRIPTION πΈ
name is a pointer to the beginning of the pathname (which usually differs from the beginning of the buffer), or NULL. π If there is an error, name may contain a partial or invalid name that can be used for audit purposes, but it can not be used for mediation. That distinction is important, bestie β audit purposes, not mediation. π¨
We need PATH_IS_DIR to indicate whether the file is a directory or not because the file may not yet exist, and so we cannot check the inode's file type. π¦ No cap, that's why it's there. β¨
π RETURN π
0, else error code if could retrieve name. That's the return section, periodt. π
π¦ SEE ALSO π¦
Kernel file ./security/apparmor/path.c β d_namespace_path(9). Go read that too, iykyk. π
xoxo, your aa_path_name(9) bestie π β source/version: ./security/apparmor, date: October 2026. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms