x_table_lookup(9)
π x_table_lookup(9) β like, the Kernel API Manual page, bestie β¨
okay so this is x_table_lookup from the Kernel API Manual, and she's a whole vibe. strap in π
πΈ NAME πΈ
x_table_lookup β lookup an x transition name via transition table
like literally, that's the whole job: you go looking for an x transition name through the transition table. no cap β¨
π¦ SYNOPSIS π¦
struct aa_label * x_table_lookup (struct aa_profile *profile , u32
xindex , const char **name );
that's the signature, copy it exactly, don't come for me π«Ά
π ARGUMENTS π
profileβ the current profile, and she is NOT NULL (do not test her on that, she will not be having it π)xindexβ the index into the x transition table. just an index. that's it. slay π₯nameβ this one's areturns:situation, so she hands you back the name tested to find the label. also NOT NULL. iconic behavior honestly π
β RETURN β
you get a refcounted label back π β or NULL on failure (MAYBE NULL), so like, vibe check your result before you use it, fr fr.
the name will always be set with the last name tried β so even on the L path, you at least get receipts of what was attempted π
β¨
π SEE ALSO π
bestie there's a whole extended universe here, get into it:
- the kernel file
./security/apparmor/domain.c(yes, she lives there π) may_change_ptraced_domain(9)label_compound_match(9)label_components_match(9)label_match(9)change_profile_perms(9)aa_xattrs_match(9)find_attach(9)x_to_label(9)apparmor_bprm_creds_for_exec(9)aa_change_hat(9)aa_change_profile(9)
all icons, all in the same friend group ππ«Ά
ngl if you're poking around apparmor label transitions and you landed here, you're doing amazing sweetie. go read x_to_label(9) next, iykyk π§
and that's the page!! brought to you by ./security/apparmor, October 2026, filed under x_table_lookup(9) β mwah ππΈπ
π¦ 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