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
- Copyright 2008-2015, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms