entry_create_dir(9)
π entry_create_dir(9) β like, the Kernel API Manual page, bestie β¨
okay so welcome to entry_create_dir, a page straight out of the Kernel API Manual β yes that manual, the one that lives rent-free in your kernel headers π«Ά
πΈ NAME πΈ
entry_create_dir β recursively create a directory entry in the securityfs β¨
like, it builds the whole directory tree for you, no cap. recursion is literally the main character here π
π¦ SYNOPSIS π¦
int entry_create_dir (struct aa_sfs_entry *fs_dir , struct dentry
*parent );
that's the whole vibe check β returns an int, takes two args, done π
π ARGUMENTS π
fs_dirβ theaa_sfs_entryto build, plus all its child entries too π§ marked NOT NULL, so do not come in here with a null bestie, i'm serious πparentβ the parent dentry in the securityfs π that's where your new stuff gets attached, iykyk
β DESCRIPTION β
Use entry_remove_dir to remove entries created with this fn. periodt π like, this function makes dirs, that one unmakes them, they're a matched set, don't mix it up π
π₯ SEE ALSO π₯
the Kernel file ./security/apparmor/apparmorfs.c is where all this lives, and here's the whole friend group, no gatekeeping:
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_file(9)entry_remove_file(9)entry_remove_dir(9)aa_destroy_aafs(9)aa_create_aafs(9)
ngl that's a long list but every single one of them is iconic in its own way, go read them, i'll wait π
and that's the page!! π this whole thing comes to you from ./security/apparmor, dated October 2026 β shoutout to the source tree for keeping it cute, 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