Skip to content

Commit eaf030a

Browse files
committed
fix(sidecar): AWS lambda also can return EACCESS for shm_open
Depending on the actual user the process runs under. Also downgrade tempfile to 3.13, when it did not pull in getrandom 0.3. getrandom 0.3 currently breaks our PHP 7.0 alpine targets, which don't support getrandom yet. We'll consider a path forward later, but as a shortterm mitigation, this fixes execution. Signed-off-by: Bob Weinand <[email protected]>
1 parent de271ed commit eaf030a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datadog-ipc/src/platform/unix/mem_handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn shm_open<P: ?Sized + NixPath>(
3535
) -> nix::Result<std::os::unix::io::OwnedFd> {
3636
mman::shm_open(name, flag, mode).or_else(|e| {
3737
// This can happen on AWS lambda
38-
if e == Errno::ENOSYS || e == Errno::ENOTSUP || e == Errno::ENOENT {
38+
if e == Errno::ENOSYS || e == Errno::ENOTSUP || e == Errno::ENOENT || e == Errno::EACCES {
3939
// The path has a leading slash
4040
let path = fallback_path(name)?;
4141
open(path.as_c_str(), flag, mode)

libdd-crashtracker/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ windows = { version = "0.59.0", features = ["Win32_System_Diagnostics_Debug", "W
7272
[dev-dependencies]
7373
criterion = { version = "0.5.1" }
7474
goblin = "0.9.3"
75-
tempfile = { version = "3.23" }
75+
tempfile = { version = "3.13" }
7676

7777
[build-dependencies]
7878
# If we use a newer version of cc, CI fails on alpine.

0 commit comments

Comments
 (0)