aafs_create_file(9)
π aafs_create_file β like, the apparmorfs file-maker π
okay so bestie, welcome to the aafs_create_file(9) page from the Kernel API Manual β¨ this is the little icon that spins up a brand-new file inside the apparmorfs filesystem, and honestly? she's giving "small but crucial" energy π
β¨ SYNOPSIS β¨
struct dentry * aafs_create_file (const char *name , umode_t mode ,
struct dentry *parent , struct aa_common_ref *data ,
const struct file_operations *fops );
like, one function, five args, and she returns a struct dentry * β periodt π
πΈ ARGUMENTS πΈ
nameβ the name of the dentry you're creating π·οΈ like, what's this file gonna be called, bestiemodeβ the permissions the file should have π you know the vibeparentβ the parent directory for this dentry ποΈ where she livesdataβ data to store oninode.i_private, available in open π¦ lowkey the lil payload that the open call can grab laterfopsβstruct file_operationsthat should be used for βοΈ (yes, the original description just trails off there β I'm not making stuff up for you, bestie π)
π¦ DESCRIPTION π¦
see aafs_create π«
that's it. that's the description. the manpage said "see aafs_create" and honestly? she said what she said π go read the sequel, iykyk
π₯ SEE ALSO π₯
- Kernel file
./security/apparmor/apparmorfs.c mangle_name(9)__aafs_setup_d_inode(9)aafs_create(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, the whole apparmorfs friend group showed up for the link-up ππ«Ά
ok that's the whole page, nothing skipped, no cap π― go forth and create files, bestie π
mwah π β this cutie dropped from ./security/apparmor in October 2026, and the manual itself is aafs_create_file(9). slay, bye πβ¨
π¦ 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