Browse Source

add new PR_CAP_AMBIENT and related defines to sys/prctl.h

ambient capability mask is new in linux v4.3, commit
58319057b7847667f0c9585b9de0e8932b0fdb08
Szabolcs Nagy 9 years ago
parent
commit
8afd2a1d03
1 changed files with 6 additions and 0 deletions
  1. 6 0
      include/sys/prctl.h

+ 6 - 0
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