match_mnt_path_str(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 lookup mntpath 🧺 your little lookup workspace.
  • devname β€” string for the devname / 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 β€” whether data is binary. true/false vibes, no cap πŸ’€
  • devinfo β€” error str if IS_ERR(devname) 😭 i.e. the string that explains what went wrong with devname.
  • 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