瀏覽代碼

add PR_MPX_*_MANAGEMENT prctl options

new in linux v3.19, commit fe3d197f84319d3bce379a9c0dc17b1f48ad358c
used for on-demand kernel allocation of bounds tables for mpx on x86
Szabolcs Nagy 10 年之前
父節點
當前提交
658aefdf33
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/sys/prctl.h

+ 3 - 0
include/sys/prctl.h

@@ -116,6 +116,9 @@ struct prctl_mm_map {
 #define PR_SET_THP_DISABLE      41
 #define PR_GET_THP_DISABLE      42
 
+#define PR_MPX_ENABLE_MANAGEMENT  43
+#define PR_MPX_DISABLE_MANAGEMENT 44
+
 int prctl (int, ...);
 
 #ifdef __cplusplus