netlbl_unlabel_getattr(9)
okay bestie, welcome to the Kernel API Manual β this page is netlbl_unlabel_getattr(9), and yes, the (9) is doing its little kernel-doc thing π
π NAME π
netlbl_unlabel_getattr β get the security attributes for an unlabled packet β¨
π SYNOPSIS π
int netlbl_unlabel_getattr (const struct sk_buff *skb , u16 family ,
struct netlbl_lsm_secattr *secattr );
π«Ά ARGUMENTS π«Ά
skbβ the packet πfamilyβ protocol familysecattrβ the security attributes
π₯ DESCRIPTION π₯
okay so the whole vibe here is: determine the security attributes, if any, for an unlabled packet and return them in secattr. That's the mission, no cap.
It returns zero on success and negative values on failure. That's the contract πβ¨
π SEE ALSO π
- Kernel file
./net/netlabel/netlabel_unlabeled.c netlbl_unlhsh_free_iface(9)netlbl_unlhsh_hash(9)netlbl_unlhsh_search_iface(9)netlbl_unlhsh_add_addr4(9)netlbl_unlhsh_add_addr6(9)netlbl_unlhsh_add_iface(9)netlbl_unlhsh_add(9)netlbl_unlhsh_remove_addr4(9)netlbl_unlhsh_remove_addr6(9)netlbl_unlhsh_condremove_iface(9)netlbl_unlhsh_remove(9)netlbl_unlhsh_netdev_handler(9)netlbl_unlabel_acceptflg_set(9)netlbl_unlabel_addrinfo_get(9)netlbl_unlabel_accept(9)netlbl_unlabel_list(9)netlbl_unlabel_staticadd(9)netlbl_unlabel_staticadddef(9)netlbl_unlabel_staticremove(9)netlbl_unlabel_staticremovedef(9)netlbl_unlabel_staticlist_gen(9)netlbl_unlabel_staticlist(9)netlbl_unlabel_staticlistdef(9)netlbl_unlabel_genl_init(9)netlbl_unlabel_init(9)netlbl_unlabel_defconf(9)
mwah π β source/version: ./net/netlabel Β· date: October 2026 π¦
π¦ 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