Debian Codegraph @

upstream/debian-unstable/man2/PR_GET_KEEPCAPS.2const

raw
1 .\" Copyright 2002-2015, Michael Kerrisk <[email protected]>
2 .\" Copyright, the authors of the Linux man-pages project
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH PR_GET_KEEPCAPS 2const 2026-02-08 "Linux man-pages 6.18"
7 .SH NAME
8 PR_GET_KEEPCAPS
9 \-
10 get the state of the "keep capabilities" flag
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_KEEPCAPS);
20 .fi
21 .SH DESCRIPTION
22 Return the current state of the calling thread's
23 "keep capabilities" flag.
24 See
25 .BR capabilities (7)
26 for a description of this flag.
27 .SH RETURN VALUE
28 On success,
29 this call
30 returns the boolean value described above.
31 On error, \-1 is returned, and
32 .I errno
33 is set to indicate the error.
34 .SH STANDARDS
35 Linux.
36 .SH HISTORY
37 Linux 2.2.18.
38 .SH SEE ALSO
39 .BR signal (2),
40 .BR PR_SET_KEEPCAPS (2const)