diff --git a/src/modulefinder/sentry_modulefinder_linux.c b/src/modulefinder/sentry_modulefinder_linux.c index a826bb7bf3..46f85b341c 100644 --- a/src/modulefinder/sentry_modulefinder_linux.c +++ b/src/modulefinder/sentry_modulefinder_linux.c @@ -141,9 +141,13 @@ read_safely(void *dst, void *src, size_t size) // See https://github.com/getsentry/sentry-native/issues/578). // Also, the syscall is only available in Linux 3.2, meaning Android 17. // In that case we get an `EINVAL`. + // Additionally, Kubernetes default seccomp profiles (RuntimeDefault) block + // `process_vm_readv` and return `ENOSYS`, causing all ELF module + // validations to fail and `debug_meta.images` to be absent from + // manually-captured events. // - // In either of these cases, just fall back to an unsafe `memcpy`. - if (!rv && (errno == EPERM || errno == EINVAL)) { + // In any of these cases, just fall back to an unsafe `memcpy`. + if (!rv && (errno == EPERM || errno == EINVAL || errno == ENOSYS)) { memcpy(dst, src, size); rv = true; }