瀏覽代碼

sys/prctl.h: add PR_PAC_{SET,GET}_ENABLED_KEYS from linux v5.13

see

  linux commit 201698626fbca1cf1a3b686ba14cf2a056500716
  arm64: Introduce prctl(PR_PAC_{SET,GET}_ENABLED_KEYS)
Szabolcs Nagy 3 年之前
父節點
當前提交
aa3bab6ce4
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/sys/prctl.h

+ 3 - 0
include/sys/prctl.h

@@ -174,6 +174,9 @@ struct prctl_mm_map {
 #define SYSCALL_DISPATCH_FILTER_ALLOW 0
 #define SYSCALL_DISPATCH_FILTER_BLOCK 1
 
+#define PR_PAC_SET_ENABLED_KEYS 60
+#define PR_PAC_GET_ENABLED_KEYS 61
+
 int prctl (int, ...);
 
 #ifdef __cplusplus