From 8afd2a1d03de74f9e801bfbd2f15c6aab0fa1278 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 18 Nov 2015 23:56:08 +0000 Subject: [PATCH] add new PR_CAP_AMBIENT and related defines to sys/prctl.h ambient capability mask is new in linux v4.3, commit 58319057b7847667f0c9585b9de0e8932b0fdb08 --- include/sys/prctl.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/sys/prctl.h b/include/sys/prctl.h index ec92053d..24f4f8bd 100644 --- a/include/sys/prctl.h +++ b/include/sys/prctl.h @@ -124,6 +124,12 @@ struct prctl_mm_map { #define PR_FP_MODE_FR (1 << 0) #define PR_FP_MODE_FRE (1 << 1) +#define PR_CAP_AMBIENT 47 +#define PR_CAP_AMBIENT_IS_SET 1 +#define PR_CAP_AMBIENT_RAISE 2 +#define PR_CAP_AMBIENT_LOWER 3 +#define PR_CAP_AMBIENT_CLEAR_ALL 4 + int prctl (int, ...); #ifdef __cplusplus -- 2.25.1