musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2019年03月07日 21:53:48 +0000
committerRich Felker <dalias@aerifal.cx>2019年03月13日 12:34:56 -0400
commitcff993cf32da345430724882214a4e493d4899fc (patch)
tree77d874b8d8d42fdb55b15546b57f74d51d7ee5a8
parent843e453c1144784ac2159f8de2d46f8d1c843374 (diff)
downloadmusl-cff993cf32da345430724882214a4e493d4899fc.tar.gz
sys/prctl.h: add PR_PAC_RESET_KEYS from linux v5.0
aarch64 pointer authentication code related prctl that allows reinitializing the key for the thread, added in linux commit ba830885656414101b2f8ca88786524d4bb5e8c1
Diffstat
-rw-r--r--include/sys/prctl.h 7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/prctl.h b/include/sys/prctl.h
index 07a3490b..9cc3a80e 100644
--- a/include/sys/prctl.h
+++ b/include/sys/prctl.h
@@ -146,6 +146,13 @@ struct prctl_mm_map {
#define PR_SPEC_DISABLE (1UL << 2)
#define PR_SPEC_FORCE_DISABLE (1UL << 3)
+#define PR_PAC_RESET_KEYS 54
+#define PR_PAC_APIAKEY (1UL << 0)
+#define PR_PAC_APIBKEY (1UL << 1)
+#define PR_PAC_APDAKEY (1UL << 2)
+#define PR_PAC_APDBKEY (1UL << 3)
+#define PR_PAC_APGAKEY (1UL << 4)
+
int prctl (int, ...);
#ifdef __cplusplus
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月04日 16:51:34 +0000

AltStyle によって変換されたページ (->オリジナル) /