__first_profile(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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