PR_GET_SECUREBITS(2const)

✨ PR_GET_SECUREBITS β€” get the "securebits" flags of the calling thread ✨

okay bestie, gather round πŸ’– this one lives in the 2const girlies of the Linux man-pages, which is just fancy speak for "these are the prctl(2) constants that got their own lil page". We're talking about PR_GET_SECUREBITS and she is so simple it's almost iconic.


🫢 LIBRARY

Standard C library (libc, -lc)

ngl you don't even have to think about this part, libc's got you πŸŽ€


🌸 SYNOPSIS

#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>

int prctl(PR_GET_SECUREBITS);

periodt, that's the whole thing. no args, no drama, just vibes πŸ’…


πŸ¦‹ DESCRIPTION

Return the "securebits" flags of the calling thread.

that's it. that's the function. she returns her securebits flags, no cap ✨

lowkey if you wanna actually understand what those flags mean, go read capabilities(7) β€” that's where the lore lives, bestie πŸ‘‘

πŸ’œ RETURN VALUE

On success, PR_GET_SECUREBITS, returns the nonnegative value described above. πŸŽ€

On error, -1 is returned, and errno is set to indicate the error. 😭

so: nonnegative = slay, -1 = check your errno, it's giving "something went wrong" πŸ’€


⭐ STANDARDS

Linux.

that's the whole vibe check. Linux only, iykyk 🌈


🧚 HISTORY

Linux 2.6.26. ✨

a lil vintage, a lil classic β€” she's been serving securebits since 2008 and honestly? obsessed 🫢


πŸ‘‘ SEE ALSO


and that's the whole page, bestie!! πŸ’– this lil masterpiece came from Linux man-pages 6.20, dated 2026-02-08, and it's filed under PR_GET_SECUREBITS(2const). go get those securebits, you main character πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms