File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
src/unix/linux_like/linux/gnu/b64/aarch64 Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -3182,6 +3182,9 @@ fn test_linux(target: &str) {
3182
3182
// GRND_INSECURE was added in glibc-2.32
3183
3183
"GRND_INSECURE" => true ,
3184
3184
3185
+ // present in recent kernels only
3186
+ "PR_PAC_SET_ENABLED_KEYS" | "PR_PAC_GET_ENABLED_KEYS" => true ,
3187
+
3185
3188
_ => false ,
3186
3189
}
3187
3190
} ) ;
Original file line number Diff line number Diff line change @@ -576,10 +576,20 @@ pub const HWCAP_PACG: ::c_ulong = 1 << 31;
576
576
//pub const HWCAP2_MTE: ::c_ulong = 1 << 18;
577
577
578
578
// linux/prctl.h
579
+ pub const PR_PAC_RESET_KEYS : :: c_int = 54 ;
579
580
pub const PR_SET_TAGGED_ADDR_CTRL : :: c_int = 55 ;
580
581
pub const PR_GET_TAGGED_ADDR_CTRL : :: c_int = 56 ;
582
+ pub const PR_PAC_SET_ENABLED_KEYS : :: c_int = 60 ;
583
+ pub const PR_PAC_GET_ENABLED_KEYS : :: c_int = 61 ;
584
+
581
585
pub const PR_TAGGED_ADDR_ENABLE : :: c_ulong = 1 ;
582
586
587
+ pub const PR_PAC_APIAKEY : :: c_ulong = 1 << 0 ;
588
+ pub const PR_PAC_APIBKEY : :: c_ulong = 1 << 1 ;
589
+ pub const PR_PAC_APDAKEY : :: c_ulong = 1 << 2 ;
590
+ pub const PR_PAC_APDBKEY : :: c_ulong = 1 << 3 ;
591
+ pub const PR_PAC_APGAKEY : :: c_ulong = 1 << 4 ;
592
+
583
593
// Syscall table
584
594
pub const SYS_io_setup : :: c_long = 0 ;
585
595
pub const SYS_io_destroy : :: c_long = 1 ;
You can’t perform that action at this time.
0 commit comments