__first_profile(9)
π NAME
okay so bestie, meet __first_profile(9) from the Kernel API Manual π Its whole job is literally right there in the name: find the first profile in a namespace. Thatβs the vibe, thatβs the era, periodt. β¨
β¨ SYNOPSIS
struct aa_profile * __first_profile (struct aa_ns *root , struct aa_ns *ns );
π«Ά ARGUMENTS
rootβ the namespace that is the root of the profiles being displayed. NOT NULL, bestie π¨nsβ the namespace to start in. NOT NULL too, no cap π¨
π RETURN
It returns an unrefcounted profile, or NULL if thereβs no profile. Like, thatβs the whole return situation. π«Ά
β οΈ Requires: profile->ns.lock to be held. fr fr, hold the lock, okay? π
π₯ SEE ALSO
Kernel file: ./security/apparmor/apparmorfs.c β thatβs the source directory vibe, iykyk. πΈ
The whole extended friend group is: mangle_name(9), __aafs_setup_d_inode(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), __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), and aa_create_aafs(9). π
xoxo, your kernel bestie π source is ./security/apparmor, date is October 2026, page is __first_profile(9). slay. π
π¦ 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