aa_lookup_condperms(9)
β¨ aa_lookup_condperms π
okay so bestie, welcome to the Kernel API Manual, section 9 β this is aa_lookup_condperms(9) and she's here to convert dfa compressed perms to internal perms. yes, that's the whole vibe. let's get into it π
πΈ NAME πΈ
aa_lookup_condperms β convert dfa compressed perms to internal perms
like literally, that's the job. compressed perms in, internal perms out. slay π
π¦ SYNOPSIS π¦
struct aa_perms * aa_lookup_condperms (kuid_t subj_uid , struct
aa_policydb *rules , aa_state_t state , struct path_cond *cond );
copy it exactly bestie, commas and all, i don't make the rules (well, the kernel does) π
π ARGUMENTS π
subj_uidβ the uid to use for the subject owner test. it's giving "who is this, even" energy π«Άrulesβ theaa_policydbto lookup perms for. NOT NULL β like, do not pass NULL, i'm serious πstateβ the state in dfa. yes, that dfa. main character state β¨condβ the conditions to consider. NOT NULL again β same deal, no NULLs allowed π
π₯ DESCRIPTION π₯
literally the entire description is:
TODO: convert from dfa + state to permission entry
that's it. that's the description. it's giving unfinished homework energy π our girl has a TODO and she's being so honest about it. iconic, frankly. the plan is to convert from dfa + state to a permission entry β when the TODO gets done, iykyk πβ¨
π RETURN π
a pointer to a file permission set π (a struct aa_perms *, if you're keeping track β which you are, because you're that girl)
π SEE ALSO π
- Kernel file
./security/apparmor/file.c file_audit_cb(9)aa_audit_file(9)aa_str_perms(9)aa_path_perm(9)xindex_is_subset(9)aa_path_link(9)aa_file_perm(9)
go read them. all of them. bestie homework ππ
sign-off time π«Ά this whole thing lives in ./security/apparmor, it's dated October 2026, and yes it really is page aa_lookup_condperms(9) of the Kernel API Manual β no cap, that's the source, that's the version, that's the date, periodt π
β¨
π¦ 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