match_mnt_path_str(9)
π match_mnt_path_str β kernel API manual, bestie edition π
Okay so like, welcome to the match_mnt_path_str(9) page, which lives in the Kernel API Manual and is genuinely just here to handle path matching for mount. That's it, that's the plot. Slay. β¨
πΈ NAME πΈ
match_mnt_path_str β handle path matching for mount ποΈ
π¦ SYNOPSIS π¦
int match_mnt_path_str (struct aa_profile *profile , const struct path
*mntpath , char *buffer , const char *devname , const char *type ,
unsigned long flags , void *data , bool binary , const char *devinfo ,
struct apparmor_audit_data *ad );
One function, ten arguments, absolutely main character energy. Not me counting them like a girlboss. π₯
β¨ ARGUMENTS β¨
Bestie, there's a lot of them, but they all pull their weight:
profileβ the confining profile π the one doing the confining, the icon, the moment.mntpathβ for the mntpnt. And listen: it is NOT NULL. Like, do not pass NULL. I'm serious. π«bufferβ buffer to be used to lookupmntpathπ§Ί your little lookup workspace.devnameβ string for thedevname/src_name. This one is chill: it MAY BE NULL OR ERRPTR π«Ά yes literally either.typeβ string for the dev type. MAYBE NULL β typo's in the original, we keep it, we love it πflagsβ mount flags to match π©dataβ fs mount data. MAYBE NULL πbinaryβ whetherdatais binary.true/falsevibes, no cap πdevinfoβ error str ifIS_ERR(devname)π i.e. the string that explains what went wrong withdevname.adβ apparmor audit data structure π the receipts.
β RETURN β
0 on success, else error. That's it. Zero = slay, anything else = the vibe check failed. π
Ngl, "error" is doing a lot of heavy lifting here β the page says error and we're not out here inventing codes. π
π SEE ALSO π
Kernel file ./security/apparmor/mount.c β and also, go read these besties:
That's the whole page, periodt. π
This one's sourced from ./security/apparmor, dated October 2026 β love that for us, see you in the docs next time, mwah π«Άππ§
π¦ 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