Debian Codegraph @

upstream/debian-trixie/man2/PR_GET_SECUREBITS.2const

raw
1 .\" Copyright 2008, 2012, 2013, 2015, Michael Kerrisk <[email protected]>
2 .\" Copyright 2024, Alejandro Colomar <[email protected]>
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH PR_GET_SECUREBITS 2const 2024-06-02 "Linux man-pages 6.9.1"
7 .SH NAME
8 PR_GET_SECUREBITS
9 \-
10 get the "securebits" flags of the calling thread
11 .SH LIBRARY
12 Standard C library
13 .RI ( libc ", " \-lc )
14 .SH SYNOPSIS
15 .nf
16 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
17 .B #include <sys/prctl.h>
18 .P
19 .B int prctl(PR_GET_SECUREBITS);
20 .fi
21 .SH DESCRIPTION
22 Return the "securebits" flags of the calling thread.
23 See
24 .BR capabilities (7).
25 .SH RETURN VALUE
26 On success,
27 .BR PR_GET_SECUREBITS ,
28 returns the nonnegative value described above.
29 On error, \-1 is returned, and
30 .I errno
31 is set to indicate the error.
32 .SH STANDARDS
33 Linux.
34 .SH HISTORY
35 Linux 2.6.26.
36 .SH SEE ALSO
37 .BR prctl (2),
38 .BR PR_SET_SECUREBITS (2const),
39 .BR capabilities (7)