entry_create_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the aa_sfs_entry to 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:

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