aa_match_to_prot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ aa_match_to_prot(9) β€” Kernel API Manual πŸ¦‹

okay bestie, welcome to the Kernel API Manual page for aa_match_to_prot(9) β€” the function that matches the af, type, protocol triplet. it's giving socket-policy matchmaker and we're obsessed πŸ’…

πŸŽ€ NAME πŸŽ€

aa_match_to_prot β€” match the af, type, protocol triplet. periodt.

✨ SYNOPSIS ✨

       aa_state_t aa_match_to_prot (struct aa_policydb *policy , aa_state_t
       state , u32 request , u16 af , int type , int protocol , struct aa_perms
       **p , const char **info );

🌸 ARGUMENTS 🌸

  • policy β€” the policy being matched πŸ‘‘
  • state β€” the state to start in 🫢
  • request β€” the permissions being requested, ignored if p == NULL πŸ™ˆ
  • af β€” socket address family 🌐
  • type β€” socket type 🧚
  • protocol β€” socket protocol πŸ“‘
  • p β€” output β€” pointer to permission associated with match πŸ’–
  • info β€” output β€” pointer to string describing failure 😭

🫢 RETURN 🫢

the state match stopped in. that's the whole vibe ⭐

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: if p is assigned a value, the returned state will be the corresponding state. it will not set p on failure, or if the match completes only if an early match occurs. no cap πŸ’€

🌈 SEE ALSO 🌈

  • Kernel file ./security/apparmor/net.c β€” that's the spot, iykyk πŸ”₯

mwah πŸ’‹ β€” this gem comes from source path ./security/apparmor, dated October 2026, and it's the aa_match_to_prot(9) manual page. slay πŸŽ€

πŸ“¦ where this page comes from