__policy_find(9)
πΈ NAME πΈ
okay so bestie, meet __policy_find(9) from the Kernel API Manual β it's the helper that finds a policy by @name on a policy list. lowkey iconic, no cap. π
β SYNOPSIS β
struct aa_policy * __policy_find (struct list_head *head , const char *name );
π ARGUMENTS π
headβ the list to search. It is NOT NULL (like, fr fr, do not pass NULL here π).nameβ the name to search for. Also NOT NULL (same vibe check, bestie β¨).
π¦ DESCRIPTION π¦
Requires: rcu_read_lock be held. That's the whole requirement, and it's giving very βdo not skip this stepβ energy. π
π₯ RETURN π₯
It returns the unrefcounted policy that match name, or NULL if it's not found. So yeah: found = policy, not found = NULL. Periodt. π
π SEE ALSO π
- Kernel file
./security/apparmor/include/lib.h aa_strneq(9)aa_dfa_null_transition(9)basename(9)__policy_strn_find(9)
cute little sign-off: source/version stamp is ./security/apparmor/include, date is October 2026. mwah πβ¨
π¦ 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