security_locked_down(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– security_locked_down(9) πŸ’–

ok so welcome to the Kernel API Manual, bestie 🫢 this is the page for security_locked_down, and yes it's exactly as dramatic as it sounds. grab a snack, we're doing one (1) very important function.


✨ NAME ✨

security_locked_down β€” the vibe check for whether a kernel feature is allowed πŸ’…


🌸 SYNOPSIS 🌸

int security_locked_down (enum lockdown_reason what );

πŸŽ€ ARGUMENTS πŸŽ€

  • what β€” the kernel feature you're asking about. like, the actual thing being requested, specified as an enum lockdown_reason πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ“ this function determines whether a kernel feature that potentially enables arbitrary code execution in kernel space should be permitted.

read that again. arbitrary. code. execution. in. kernel. space. πŸ’€ that's the whole reason this function exists, and it's lowkey the most main-character thing in the entire LSM layer. it's literally the bouncer at the club and the club is ring zero πŸ”₯


⭐ RETURN ⭐

Returns 0 if permission is granted. that's it, that's the return value, and honestly? iconic. ✨


πŸ’œ SEE ALSO πŸ’œ

no cap this list is long, but every single one of these is real and you're gonna need them, so here we go 🧚 it all lives in the kernel file ./security/security.c:


and that's the whole page, bestie πŸŽ€ big slay, no notes. this one came out of ./security, dated October 2026 β€” mwah, drink some water, and go read the source πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from