aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorPatryk Duda <patrykd@google.com>2024-04-12 10:56:28 +0200
committerBoringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-04-12 15:53:55 +0000
commit1c6e10495e4f69cf9e5fd4e363d580ff1fdb1a96 (patch)
treeacf4d2f9ee7f69c44963cdf410c867838b131094 /crypto
parentbdb7b19c3cd336b9e44086f677a0e37402c4bf13 (diff)
downloadboringssl-1c6e10495e4f69cf9e5fd4e363d580ff1fdb1a96.zip
boringssl-1c6e10495e4f69cf9e5fd4e363d580ff1fdb1a96.tar.gz
boringssl-1c6e10495e4f69cf9e5fd4e363d580ff1fdb1a96.tar.bz2
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 <bbe@google.com> Commit-Queue: Bob Beck <bbe@google.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/fipsmodule/rand/fork_detect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/fipsmodule/rand/fork_detect.h b/crypto/fipsmodule/rand/fork_detect.h
index c267848..0fb275c 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