selinux_netl...curity_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ selinux_netlbl_sk_security_reset(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's section 9, a kernel function page, and it's honestly a little cutie. let's get into it 🫢


🌸 NAME 🌸

selinux_netlbl_sk_security_reset β€” reset the NetLabel fields ✨

πŸŽ€ SYNOPSIS πŸŽ€

void selinux_netlbl_sk_security_reset (struct sk_security_struct *sksec
);

like, it returns void, so don't be out here expecting a return value, bestie πŸ’€ it just does the thing.

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sksec β€” the sk_security_struct, obvs πŸŽ€ that's the thing getting its fields reset.

πŸ’– DESCRIPTION πŸ’–

so the vibe here is: you call this when the NetLabel state of a sk_security_struct needs to be reset. that's it, that's the whole function, and it ate πŸ’…

heads up though β€” the caller is responsible for all the NetLabel sk_security_struct locking. all of it. not some of it, not "eh, close enough" β€” the caller. so lock it properly or don't come crying to me 😭

⭐ SEE ALSO ⭐

like, that's the whole netlabel friend group right there πŸ‘‘ go read them too, iykyk.


ngl the whole "caller handles the locking" line is the main character of this page β€” don't skip it πŸ™ˆ

okay that's the page!! mwah πŸ’‹ this one came from ./security/selinux, dated October 2026, living in section 9 of the Kernel API Manual β€” and yes, the header up top and the footer down here both said selinux_netlbl_sk_security_reset(9) the whole time, iconic behavior honestly πŸŒˆβœ¨πŸ’œ

πŸ“¦ where this page comes from