mangle_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to the mangle_name(9) page β€” this is the kernel API manual, and the manual name is literally mangle_name(9) (iykyk). The function has one job and one job only: mangle a profile name to std profile layout form πŸ’…βœ¨

🌸 SYNOPSIS 🌸

int mangle_name (const char *name , char *target );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • name β€” the profile name to mangle. Docs are loud about this one: NOT NULL 🚨
  • target β€” the buffer to store the mangled name, same length as name. This one is MAYBE NULL πŸ‘€
okay so name is marked NOT NULL β€” do not roll up with a null pointer, bestie, that is not the vibe πŸ’€

✨ RETURN ✨

returns the length of mangled name β€” that's the return value, periodt 🫢

πŸ‘€ SEE ALSO πŸ‘€

bestie, these all hang around the Kernel file ./security/apparmor/apparmorfs.c β€” go peek if you're in your kernel-source era:


okay that's the whole mangle_name(9) page, straight from ./security/apparmor, dated October 2026 β€” slay, stay mangled, bye bestie πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from