entry_create_file(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the aa_sfs_entry you're building an entry for. and no, she cannot be NULL β€” that's a hard NOT NULL, bestie, do not test her πŸ™ˆ
  • parent β€” the parent dentry in 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:

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