netlbl_sock_delattr(9)
β¨ netlbl_sock_delattr(9) β¨
Okay bestie, welcome to the netlbl_sock_delattr page from the Kernel API Manual β yes the whole manual name, we're fancy like that π
. This is a tiny little function but she's important, so let's get into it.
πΈ NAME πΈ
netlbl_sock_delattr β deletes all the NetLabel labels sitting on a socket. Every single one. Gone. Periodt π
π¦ SYNOPSIS π¦
void netlbl_sock_delattr(struct sock *sk);
π ARGUMENTS π
skβ the socket, bestie. That's the one. The socket in question π«Ά
π₯ DESCRIPTION π₯
So what does she actually do? netlbl_sock_delattr removes all the NetLabel labeling from sk β like, a full clean-out, no crumbs left π§Ήβ¨
β οΈ Real talk though: the caller is responsible for making sure sk is locked. That's on you, not on the function. Don't make it weird, just lock the socket first π
π SEE ALSO π
Lowkey the friend group is huge, so here's everyone:
- Kernel file
./net/netlabel/netlabel_kapi.c 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_enabled(9)netlbl_sock_setattr(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, babes! π¦ This lil gem lives in ./net/netlabel, dated October 2026, and it's signed netlbl_sock_delattr(9) β iconic from the first line to the last, no cap ππ
π¦ 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