netlbl_enabled(9)
π NAME
netlbl_enabled β the little vibe check that tells you whether the NetLabel subsystem is, like, actually on β¨
(oh and btw this whole page lives in the Kernel API Manual, section 9, bestie π)
π¦ SYNOPSIS
int netlbl_enabled (void );
πΈ ARGUMENTS
voidβ literally nothing, bestie. no arguments. it takes zero (0) inputs and it is thriving about it π
β¨ DESCRIPTION
okay so here's the tea β β the LSM can call this function to figure out whether it should be using NetLabel security attributes in its enforcement mechanism. that's the whole job. she's a yes/no girlie.
and how does NetLabel decide? currently, NetLabel is considered enabled when its configuration contains a valid setup for at least one labeled protocol β iykyk, that means NetLabel can understand incoming labeled packets of at least one type π . otherwise? NetLabel is considered disabled. periodt. no in-between, no "it's complicated" β just enabled or not.
π SEE ALSO
all the siblings and cousins, fr fr β go say hi:
- Kernel file
./net/netlabel/netlabel_kapi.c, plus: netlbl_cfg_map_del(9)netlbl_cfg_unlbl_map_add(9)netlbl_cfg_unlbl_static_add(9)netlbl_cfg_unlbl_static_del(9)netlbl_cfg_cipsov4_add(9)netlbl_cfg_cipsov4_del(9)netlbl_cfg_cipsov4_map_add(9)netlbl_cfg_calipso_add(9)netlbl_cfg_calipso_del(9)netlbl_cfg_calipso_map_add(9)_netlbl_catmap_getnode(9)netlbl_catmap_walk(9)netlbl_catmap_walkrng(9)netlbl_catmap_getlong(9)netlbl_catmap_setbit(9)netlbl_catmap_setrng(9)netlbl_catmap_setlong(9)netlbl_bitmap_walk(9)netlbl_bitmap_setbit(9)netlbl_sock_setattr(9)netlbl_sock_delattr(9)netlbl_sock_getattr(9)netlbl_sk_lock_check(9)netlbl_conn_setattr(9)netlbl_req_setattr(9)netlbl_req_delattr(9)netlbl_skbuff_setattr(9)netlbl_skbuff_getattr(9)netlbl_skbuff_err(9)netlbl_cache_invalidate(9)netlbl_cache_add(9)netlbl_audit_start(9)netlbl_init(9)
and that's the whole page, bestie π«Ά you ate that π
<cute>this came from ./net/netlabel, dated October 2026 β go forth and check your vibes, mwah π</cute>
π¦ 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