entry_remove_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” an aa_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 🧚:


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