Debian Codegraph @

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

raw
1 .\" Copyright 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_CAP_AMBIENT_CLEAR_ALL 2const 2026-02-08 "Linux man-pages 6.18"
7 .SH NAME
8 PR_CAP_AMBIENT_CLEAR_ALL
9 \-
10 clear the ambient capability set 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_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0L, 0L, 0L);
20 .fi
21 .SH DESCRIPTION
22 All capabilities will be removed from the ambient capability set.
23 .SH RETURN VALUE
24 On success,
25 0 is returned.
26 On error, \-1 is returned, and
27 .I errno
28 is set to indicate the error.
29 .SH VERSIONS
30 See
31 .BR PR_CAP_AMBIENT (2const).
32 .SH STANDARDS
33 Linux.
34 .SH HISTORY
35 Linux 4.3.
36 .\" commit 58319057b7847667f0c9585b9de0e8932b0fdb08
37 .SH SEE ALSO
38 .BR prctl (2),
39 .BR PR_CAP_AMBIENT (2const),
40 .BR libcap (3)