__aafs_setup_d_inode(9)
π 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 oninode.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β thestruct file_operationsthat should be used. the file's whole personality tbh β¨iopsβ the struct ofinode_operationsthat 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:
mangle_name(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)entry_remove_dir(9)aa_destroy_aafs(9)aa_create_aafs(9)
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
- 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