entry_create_file(9)
π entry_create_file(9) β like, the apparmor securityfs file-entry maker β¨
okay bestie, so we're in the Kernel API Manual today (very demure, very kernel) and this page is all about entry_create_file β the little function that creates a file entry in the apparmor securityfs. yes. that's the whole vibe. let's get into it π
β¨ SYNOPSIS β¨
int entry_create_file (struct aa_sfs_entry *fs_file , struct dentry
*parent );
like, she takes two things and gives you back an int. simple. iconic. no notes π
π«Ά ARGUMENTS π«Ά
fs_fileβ theaa_sfs_entryyou're building an entry for. and no, she cannot beNULLβ that's a hard NOT NULL, bestie, do not test her πparentβ the parentdentryin the securityfs. like, where this file entry is gonna live. her mom, basically π
πΈ DESCRIPTION πΈ
so you make the entry with this fn, right? and when you're done with it, you use entry_remove_file to remove entries created with this fn. that's it. that's the tea β pairing them up is the whole point β create with one, clean up with the other, no cap β¨
fr fr, don't just leave your entries lying around β entry_remove_file is right there and she's waiting π«Ά
π¦ SEE ALSO π¦
the kernel file is ./security/apparmor/apparmorfs.c, and honestly the whole friend group showed up for this one:
mangle_name(9)__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_dir(9)entry_remove_file(9)entry_remove_dir(9)aa_destroy_aafs(9)aa_create_aafs(9)
like okayyy, twenty-four entries, she ate π₯ go read them all, iykyk π
and that's the page, bestie π this one lives under ./security/apparmor and it's dated October 2026 β so yeah, mark your calendar, she's from the future πβ mwah, study up and slay π
π¦ 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