smk_import_valid_label(9)
π smk_import_valid_label(9) π
πΈ NAME πΈ
smk_import_valid_label β slides a label in and hands you back the list entry, bestie. This one lives in the Kernel API Manual, and it's giving βshort but important.β
β¨ SYNOPSIS β¨
struct smack_known * smk_import_valid_label (const char *label , int label_len , gfp_t gfp );
π ARGUMENTS π
labelβ a text string that is a valid Smack label, and no, it is not null-terminated. So don't go looking for a\0at the end, okay? πlabel_lenβ the length of the text string inlabel. Basically the char count, periodt.gfpβ the GFP mask used for allocating memory for the label text string copy. Memory vibes, but make it GFP. β¨
π₯ RETURN π₯
The return deets live in the description of smk_import_entry β go peek there, bestie. That's the whole return situation. π
π¦ SEE ALSO π¦
- Kernel file:
./security/smack/smack_access.c 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)smk_netlbl_mls(9)smack_populate_secattr(9)smk_import_entry(9)smack_from_secid(9)smack_privileged_cred(9)smack_privileged(9)
This little icon comes from ./security/smack, dated October 2026, and it's serving smk_import_valid_label(9) realness. 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