__next_profile(9)
πΈ NAME πΈ
okay so bestie, this is the __next_profile(9) page from the Kernel API Manual β itβs the function that steps to the next profile in a profile tree. Slay.
β¨ SYNOPSIS β¨
struct aa_profile * __next_profile (struct aa_profile *p );
π ARGUMENTS π
pβ the current profile in the tree, and bestie it is NOT NULL. Like, do not come in here with a NULL, fr fr.
π DESCRIPTION π
It performs a depth first traversal on the profile tree in a namespace. Thatβs the whole vibe: depth first, profile tree, namespace, next profile energy. Periodt.
π₯ RETURN π₯
It gives you the next profile, or NULL if itβs done. Requires: profile->ns.lock to be held β no cap, hold that lock. π
π¦ SEE ALSO π¦
Kernel file ./security/apparmor/apparmorfs.c plus the whole friend group: 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), __first_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).
Cute sign-off: this page lives in ./security/apparmor, stamped October 2026, and itβs giving kernel API manual realness. πβ¨π«Ά
π¦ 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