__aafs_setup_d_inode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

__aafs_setup_d_inode β€” the basic inode setup for apparmorfs, bestie ✨

(also hi, you're reading the Kernel API Manual, welcome to the function-call group chat 🫢)


🌸 SYNOPSIS 🌸

int __aafs_setup_d_inode (struct inode *dir , struct dentry *dentry ,
       umode_t mode , void *data , char *link , const struct file_operations
       *fops , const struct inode_operations *iops );

She's giving "lots of arguments" energy and honestly? iconic. Seven parameters, zero notes πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dir β€” the parent directory for the dentry. like, the inode's mom, fr fr 🏠
  • dentry β€” the dentry we are setting the inode up for. this is the main character of the whole operation πŸ‘‘
  • mode β€” the permissions the file should have. lowkey the vibe check of the file πŸ”
  • data β€” what gets stored on inode.i_private, and it's available in open. so it's a lil secret she carries with her πŸ™ˆ
  • link β€” if it's a symlink, this is the symlink target string. only for symlink girlies πŸ¦‹
  • fops β€” the struct file_operations that should be used. the file's whole personality tbh ✨
  • iops β€” the struct of inode_operations that should be used. more personality, inode edition πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./security/apparmor/apparmorfs.c β€” and honestly the whole squad shows up here, no cap:

like, that's the whole friend group right there πŸ˜­πŸ’– go read them too, iykyk


ok that's the whole page bestie, go set up some inodes and slay πŸ’…βœ¨

sign-off time πŸŽ€ this absolute baddie of a page lives in ./security/apparmor and it was dated October 2026 β€” so yeah, she's from the future, we don't make the rules 🌈⭐

πŸ“¦ where this page comes from