summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-11-18 23:56:08 +0000
committerRich Felker <dalias@aerifal.cx>2016-01-26 18:30:14 -0500
commit8afd2a1d03de74f9e801bfbd2f15c6aab0fa1278 (patch)
tree85ca4311124679b2be69b26c0a2b3ea001820bec /include
parent3934f49c01d35565a9b74b3f9b29a913efa7c973 (diff)
downloadmusl-8afd2a1d03de74f9e801bfbd2f15c6aab0fa1278.tar.gz
add new PR_CAP_AMBIENT and related defines to sys/prctl.h
ambient capability mask is new in linux v4.3, commit 58319057b7847667f0c9585b9de0e8932b0fdb08
Diffstat (limited to 'include')
-rw-r--r--include/sys/prctl.h6
1 files changed, 6 insertions, 0 deletions
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