smk_import_entry(9)
π smk_import_entry(9) π
hey bestie!! welcome to the Kernel API Manual page for smk_import_entry(9) β yes, we're doing kernel label-list stuff and we're gonna slay it β¨
πΈ NAME πΈ
smk_import_entry β import a label, return the list entry. periodt π
β¨ SYNOPSIS β¨
struct smack_known * smk_import_entry (const char *string , int len );
π ARGUMENTS π
stringβ a text string that might contain a Smack label at the beginning. like, it might start with one, iykyk π¦lenβ the maximum size to look into, may be zero ifstringis null-terminated. zero is valid here when the string is null-terminated, no cap π
π₯ DESCRIPTION π₯
okay so here's the vibe: this function returns a pointer to the entry in the label list that matches the passed string, adding it if necessary, or an error code. that's the whole main character move π
π¦ 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_valid_label(9)smack_from_secid(9)smack_privileged_cred(9)smack_privileged(9)
later bestie π β source/version: ./security/smack; date: October 2026; page: smk_import_entry(9). π«Ά
π¦ 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