replacement_allowed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

replacement_allowed(9) πŸ’…βœ¨

okay so bestie, welcome to the Kernel API Manual side of town 🫢 this page is replacement_allowed, aka the little test that checks if replacement is allowed. That's it. That's the assignment. Let's get into it 😌


NAME πŸŽ€

replacement_allowed β€” test to see if replacement is allowed πŸ’…

SYNOPSIS πŸ“œ

int replacement_allowed (struct aa_profile *profile , int noreplace ,
       const char **info );

ARGUMENTS πŸ’¬

  • profile β€” profile to test if it can be replaced (MAYBE NULL) πŸ‘‘
  • noreplace β€” true if replacement shouldn't be allowed but addition is okay 🚫
  • info β€” Returns - info about why replacement failed (NOT NULL) 🫢

RETURN πŸ”

0 if replacement allowed, else error code. no cap, that's the whole return vibe ✨

SEE ALSO πŸ‘€

Kernel file ./security/apparmor/policy.c β€” plus the whole linked-up friend group, all here, all accounted for:


mwah πŸ’‹ signed off from ./security/apparmor, dated October 2026 β€” and yes, it's still replacement_allowed(9) energy. periodt. 🌈

πŸ“¦ where this page comes from