may_change_ptraced_domain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to may_change_ptraced_domain(9) from the Kernel API Manual β€” we’re doing AppArmor domain-change permission checks today and honestly it’s giving very specific kernel energy πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

may_change_ptraced_domain β€” check if can change profile on ptraced task 🫢

✨ SYNOPSIS ✨

int may_change_ptraced_domain (const struct cred *to_cred , struct
       aa_label *to_label , const char **info );

πŸ’– ARGUMENTS πŸ’–

  • to_cred β€” cred of task changing domain.
  • to_label β€” profile to change to β€” and it is NOT NULL, no cap πŸ™ˆ.
  • info β€” message if there is an error.

🌸 DESCRIPTION 🌸

Okay so the actual vibe check: it checks if current is ptraced, and if it is, it checks if the tracing task is allowed to trace the new domain πŸ”₯. That’s the whole job, bestie.

πŸ¦‹ RETURN πŸ¦‹

  • 0 or error if change not allowed 😭.

🌈 SEE ALSO 🌈

Kernel file ./security/apparmor/domain.c β€” plus these little icons:


okay bye bestie! This page’s source/version lives under ./security/apparmor and it’s dated October 2026. may_change_ptraced_domain(9) out β€” slay and read your kernel docs πŸ’…πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from