may_change_ptraced_domain(9)
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 π¦
0or error if change not allowed π.
π SEE ALSO π
Kernel file ./security/apparmor/domain.c β plus these little icons:
label_compound_match(9)label_components_match(9)label_match(9)change_profile_perms(9)aa_xattrs_match(9)find_attach(9)x_table_lookup(9)x_to_label(9)apparmor_bprm_creds_for_exec(9)aa_change_hat(9)aa_change_profile(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms