From 1c6e10495e4f69cf9e5fd4e363d580ff1fdb1a96 Mon Sep 17 00:00:00 2001 From: Patryk Duda Date: Fri, 12 Apr 2024 10:56:28 +0200 Subject: [PATCH] Disable fork detection for Zephyr and CrOS EC Zephyr and CrOS EC targets embedded devices without MMU unit (no virtual memory). It means that they don't support any address space duplication like fork() or clone(). BUG=b/321092852 Change-Id: Icdf8be888ba87cd164cffb35f1accbc14f1a6887 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/67807 Reviewed-by: Bob Beck Commit-Queue: Bob Beck --- crypto/fipsmodule/rand/fork_detect.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/fipsmodule/rand/fork_detect.h b/crypto/fipsmodule/rand/fork_detect.h index c26784821..0fb275cf8 100644 --- a/crypto/fipsmodule/rand/fork_detect.h +++ b/crypto/fipsmodule/rand/fork_detect.h @@ -29,7 +29,8 @@ // iOS doesn't normally allow fork in apps, but it's there. #define OPENSSL_FORK_DETECTION #define OPENSSL_FORK_DETECTION_PTHREAD_ATFORK -#elif defined(OPENSSL_WINDOWS) || defined(OPENSSL_TRUSTY) +#elif defined(OPENSSL_WINDOWS) || defined(OPENSSL_TRUSTY) || \ + defined(__ZEPHYR__) || defined(CROS_EC) // These platforms do not fork. #define OPENSSL_DOES_NOT_FORK #endif