smk_netlbl_mls(9)
π NAME π
okay so bestie, you're reading the smk_netlbl_mls(9) page from the Kernel API Manual, and the whole assignment is convert a catset to netlabel mls categories. that's the vibe. periodt.
β¨ SYNOPSIS β¨
int smk_netlbl_mls (int level , char *catset , struct netlbl_lsm_secattr
*sap , int len );
π ARGUMENTS π
levelβ the MLS sensitivity level. yes, sensitivity. it's giving hierarchy.catsetβ the Smack categories. that's the set, bestie.sapβ where to put the netlabel categories. destination energy.lenβ number of bytes for the levels in a CIPSO IP option. very specific, very demure. keep that exact.
π¦ DESCRIPTION π¦
so the function allocates and fills attr.mls. that's the move.
returns 0 on success. returns an error code on failure. 0 = slay, error code = not slay. no cap.
π SEE ALSO π
Kernel file ./security/smack/smack_access.c is the source spot β and here's the whole related-friend group, every single one, no skipping:
smk_access_entry(9)smk_access(9)smk_tskacc(9)smk_curacc(9)smack_str_from_perm(9)smack_log_callback(9)smack_log(9)smk_insert_entry(9)smk_find_entry(9)smk_parse_label_len(9)smk_parse_smack(9)smack_populate_secattr(9)smk_import_entry(9)smk_import_valid_label(9)smack_from_secid(9)smack_privileged_cred(9)smack_privileged(9)
π that's the whole page, bestie. source/version: ./security/smack; date: October 2026; manual page: smk_netlbl_mls(9). go be a kernel main character π«Ά
π¦ 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