__label_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so this is __label_remove(9) from the Kernel API Manual, and it's giving β€œtiny but locked-down” energy πŸ’…. It removes a label from the label set, and there is a very real lock requirement you cannot ghost. 🫢


✨ NAME ✨

__label_remove β€” remove @label from the label set. Iconic, direct, no filler πŸŽ€.

🌸 SYNOPSIS 🌸

bool __label_remove (struct aa_label *label , struct aa_label *new );

πŸ’– ARGUMENTS πŸ’–

  • label β€” label to remove. This is the one getting removed from the label set, periodt.
  • new β€” label to redirect to. The redirect target, iykyk πŸ’«.

πŸ”₯ DESCRIPTION πŸ”₯

Requires: labels_set(label)->lock write_lock.

⚠️ bestie, this is the lock requirement β€” like, do not skip it. It's not a vibe, it's a requirement πŸ’€.

πŸ‘‘ RETURN πŸ‘‘

Returns true if the label was in the tree and removed. That's the exact return condition, no extra lore ✨.

🌈 SEE ALSO 🌈

Kernel file ./security/apparmor/label.c, plus the whole function friend group:


xoxo, your kernel bestie πŸ’‹ β€” source/version: ./security/apparmor; date: October 2026; page: __label_remove(9).

πŸ“¦ where this page comes from