mls_export_netlbl_cat(9)
π mls_export_netlbl_cat(9) β from the Kernel API Manual, bestie π
okay so picture this: it's a kernel API manual page, section 9, and the star of the show is a little function called mls_export_netlbl_cat. she's lowkey iconic and honestly kind of a one-job girlie, but we stan. let's get into it β¨
πΈ NAME πΈ
mls_export_netlbl_cat β literally just exporting the MLS categories to NetLabel, that's the whole vibe π«
π¦ SYNOPSIS π¦
int mls_export_netlbl_cat (struct policydb *p , struct context *context
, struct netlbl_lsm_secattr *secattr );
no cap, that's the exact signature β copy it character for character or it will NOT compile, and we do not want that energy π
π ARGUMENTS π
pβ the policy. yes, just "the policy", she's mysterious like that πcontextβ the security context, the main character of this whole operation πsecattrβ the NetLabel security attributes, aka the destination where the good stuff goes π§
β¨ DESCRIPTION β¨
so here's the tea: given the security context, this function copies the low MLS categories into the NetLabel MLS category field. that's it, that's the job. she copies, she slays, she leaves π«Ά
and the return value? if it works you get zero back β success, we love to see it. if it doesn't, you get negative values, meaning failure, meaning something went sideways π
fr fr, anything negative = not the vibe. check it. always check it.
π₯ SEE ALSO π₯
kernel file ./security/selinux/ss/mls.c π
like, go read those too, they're the rest of the friend group and they all ate π
π bye bestie π
this page came out of ./security/selinux/ss, dated October 2026, and the manual name is mls_export_netlbl_cat(9) in case you forgot already π β anyway mwah, go export those categories, you're gonna do amazing πβ¨π
π¦ 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