---
name: "PR_GET_SECUREBITS"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PR_GET_SECUREBITS"
---

# PR\_GET\_SECUREBITS(2const)

get the "securebits" flags of the calling thread

## NAME

PR\_GET\_SECUREBITS - get the "securebits" flags of the calling thread

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

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

**int prctl(PR\_GET\_SECUREBITS);**

## DESCRIPTION

Return the "securebits" flags of the calling thread. See [**capabilities**(7)](/capabilities/7.md).

## 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.

## STANDARDS

Linux.

## HISTORY

Linux 2.6.26.

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_SET\_SECUREBITS**(2const)](/PR_SET_SECUREBITS/2const.md), [**capabilities**(7)](/capabilities/7.md)
