smk_cipso_doi(9)
π smk_cipso_doi π
ok so this is a page straight out of the Kernel API Manual, bestie β section 9, kernel-space vibes only. we're talking smk_cipso_doi, and yes it's as niche as it sounds but we're gonna slay it anyway π«Ά
β¨ NAME β¨
smk_cipso_doi β set netlabel maps
like, that's the whole pitch. netlabel maps. set 'em. iconic behavior honestly π
β¨ SYNOPSIS β¨
int smk_cipso_doi (u32 ndoi , gfp_t gfp_flags );
that's it. that's the whole signature. two args, one int coming back atcha. no cap π
β¨ ARGUMENTS β¨
ndoiβ the new value for our CIPSO DOI. yes, our DOI. it's au32, it's the fresh one, it's moving in πΈgfp_flagsβ the kmalloc allocation context. you know, the lil allocation mood ring for this call β¨
π¦ SEE ALSO π¦
ok so the source of all this is the kernel file ./security/smack/smackfs.c, and it's giving big family energy β here's the entire extended friend group, no one left out, periodt:
smk_netlabel_audit_set(9)smk_set_access(9)smk_perm_from_str(9)smk_fill_rule(9)smk_parse_rule(9)smk_parse_long_rule(9)smk_write_rules_list(9)smk_open_load(9)smk_write_load(9)smk_unlbl_ambient(9)smk_open_cipso(9)smk_set_cipso(9)smk_write_cipso(9)smk_open_cipso2(9)smk_write_cipso2(9)smk_open_net4addr(9)smk_net4addr_insert(9)smk_write_net4addr(9)smk_open_net6addr(9)smk_net6addr_insert(9)smk_write_net6addr(9)smk_read_doi(9)smk_write_doi(9)smk_read_cipso_auto_level(9)smk_write_cipso_auto_level(9)smk_read_ambient(9)smk_write_ambient(9)smk_list_swap_rcu(9)smk_parse_label_list(9)smk_destroy_label_list(9)smk_write_onlycap(9)smk_read_unconfined(9)smk_write_unconfined(9)smk_read_logging(9)smk_write_logging(9)smk_open_load_self(9)smk_write_load_self(9)smk_user_access(9)smk_write_access(9)smk_open_load2(9)smk_write_load2(9)smk_open_load_self2(9)smk_write_load_self2(9)smk_write_access2(9)smk_write_revoke_subj(9)smk_init_sysfs(9)smk_write_change_rule(9)smk_read_syslog(9)smk_write_syslog(9)smk_open_relabel_self(9)smk_write_relabel_self(9)smk_read_ptrace(9)smk_write_ptrace(9)smk_fill_super(9)smk_get_tree(9)smk_init_fs_context(9)init_smk_fs(9)
and that's the tea β lowkey a whole friend group in one SEE ALSO section, and every single one of them said hi π
sign-off time, bestie π this page lives under ./security/smack, and it's stamped October 2026 β so like, future-core but make it kernel πβ¨ go read your man pages, ily, 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