netlbl_conn_setattr(9)
This is netlbl_conn_setattr(9) from the Kernel API Manual β yes bestie, we're in kernel API land and it's all about labeling a connected socket the correct protocol way. π
β¨
π NAME π
netlbl_conn_setattr β label a connected socket using the correct protocol.
β¨ SYNOPSIS β¨
int netlbl_conn_setattr (struct sock *sk , struct sockaddr *addr , const
struct netlbl_lsm_secattr *secattr );
π ARGUMENTS π
skβ the socket to label. Main character socket, periodt.addrβ the destination address.secattrβ the security attributes.
π¦ DESCRIPTION π¦
Okay so here's the vibe: attach the correct label to the given connected socket, using the security attributes specified in secattr. π«Ά
Big important thing, bestie: the caller is responsible for ensuring that sk is locked. Not me, not the function β you. Lock it. π
It returns zero on success and negative values on failure. That's the whole behavior, no cap. β¨
Caller check: you are responsible for ensuring sk is locked. π
π SEE ALSO π
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_delattr(9)netlbl_sock_getattr(9)netlbl_sk_lock_check(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)
Source/version: ./net/netlabel Β· date: October 2026 β mwah, bye bestie! ππ
π¦ 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