Only attempt to mprotect FIPS module for AArch64.
This need doesn't arise on other Android platforms at the current time. Change-Id: I38c9b5417ec6717210f5797d86d226ab0d9a4232 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/37744 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
@@ -115,7 +115,7 @@ extern const uint8_t BORINGSSL_bcm_rodata_start[];
|
||||
extern const uint8_t BORINGSSL_bcm_rodata_end[];
|
||||
#endif
|
||||
|
||||
#if defined(OPENSSL_ANDROID)
|
||||
#if defined(OPENSSL_ANDROID) && defined(OPENSSL_AARCH64)
|
||||
static void BORINGSSL_maybe_set_module_text_permissions(int permission) {
|
||||
// Android may be compiled in execute-only-memory mode, in which case the
|
||||
// .text segment cannot be read. That conflicts with the need for a FIPS
|
||||
|
||||
Reference in New Issue
Block a user