aa_lookup_condperms(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the aa_policydb to 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 🌈

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