netlbl_conn_setattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

Source/version: ./net/netlabel Β· date: October 2026 β€” mwah, bye bestie! πŸ’‹πŸ’–

πŸ“¦ where this page comes from