entry_remove_dir(9)
π entry_remove_dir(9) β like, the Kernel API Manual era π
okay so bestie, welcome to entry_remove_dir from the Kernel API Manual (section 9, we love a kernel-internals moment) β¨ this one's short and sweet and honestly kind of a baddie for it.
β¨ NAME β¨
entry_remove_dir β recursively drop a directory entry from the securityfs π«
like, it doesn't just yeet the one dir, it takes the whole little family tree down with it. recursive removal, no cap. πΈ
π¦ SYNOPSIS π¦
void entry_remove_dir (struct aa_sfs_entry *fs_dir );
that's it. that's the whole signature. no return value, she just does it. π«Ά
π ARGUMENTS π
fs_dirβ anaa_sfs_entry(and literally all of its child entries) to detach. and bestie, it is NOT NULL β do not come in here with a null pointer, that's not the vibe π
β οΈ heads up: this arg is marked NOT NULL, so fr fr pass a real one. mmmkay? π
π SEE ALSO π
the kernel file involved is ./security/apparmor/apparmorfs.c, and here's the whole crew she runs with β every single one, no skipping π§:
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_create_dir(9)entry_remove_file(9)aa_destroy_aafs(9)aa_create_aafs(9)
that's the whole page, icon behavior honestly. sourced straight from ./security/apparmor, dated October 2026 β so go forth and recursively remove responsibly, 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