---
name: "PR_CAP_AMBIENT_LOWER"
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_CAP_AMBIENT_LOWER"
---

# PR\_CAP\_AMBIENT\_LOWER(2const)

lower the ambient capability set of the calling thread

## NAME

PR\_CAP\_AMBIENT\_LOWER - lower the ambient capability set 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\_CAP\_AMBIENT, PR\_CAP\_AMBIENT\_LOWER, long** *cap***, 0L, 0L);**

## DESCRIPTION

The capability specified in *cap* is removed from the ambient capability set.

## RETURN VALUE

On success, 0 is returned. On error, -1 is returned, and *errno* is set to indicate the error.

## ERRORS

- **EINVAL**

  *cap* does not specify a valid capability.

## VERSIONS

See [**PR\_CAP\_AMBIENT**(2const)](/PR_CAP_AMBIENT/2const.md).

## STANDARDS

Linux.

## HISTORY

Linux 4.3.

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_CAP\_AMBIENT**(2const)](/PR_CAP_AMBIENT/2const.md), [**libcap**(3)](/libcap/3.md)
