projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3934f49
)
add new PR_CAP_AMBIENT and related defines to sys/prctl.h
author
Szabolcs Nagy
<nsz@port70.net>
Wed, 18 Nov 2015 23:56:08 +0000
(23:56 +0000)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 26 Jan 2016 23:30:14 +0000
(18:30 -0500)
ambient capability mask is new in linux v4.3, commit
58319057b7847667f0c9585b9de0e8932b0fdb08
include/sys/prctl.h
patch
|
blob
|
history
diff --git
a/include/sys/prctl.h
b/include/sys/prctl.h
index ec92053d2cd4ac971cf6ce42710f9e688437ebb7..24f4f8bdfb74c2582ee183b3ce548cf16f6c2d1a 100644
(file)
--- 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