mangle_name(9)
π 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 asname. 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:
__aafs_setup_d_inode(9)aafs_create(9)aafs_create_file(9)aafs_create_dir(9)aafs_remove(9)aa_simple_write_to_buffer(9)aa_get_data_from_compressed(9)query_data(9)query_label(9)aa_write_access(9)__next_ns(9)__first_profile(9)__next_profile(9)next_profile(9)p_start(9)p_next(9)p_stop(9)seq_show_profile(9)entry_create_file(9)entry_create_dir(9)entry_remove_file(9)entry_remove_dir(9)aa_destroy_aafs(9)aa_create_aafs(9)
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
- 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