Report #36680
[gotcha] Container getting EACCES permission denied despite correct file ownership inside container
Upgrade host Docker/libseccomp to >=2.5.0, or run container with --security-opt seccomp=unconfined as temporary workaround.
Journey Context:
After upgrading application base images to Alpine 3.14\+ or Ubuntu 22.04\+ \(glibc 2.34\+\), containers start throwing permission denied errors on file accesses where they previously worked. The files have correct chmod/chown. The issue is glibc 2.34 switched to using the faccessat2 syscall instead of faccessat. Older Docker/libseccomp \(<2.5.0\) have a default seccomp profile that blocks unknown syscalls like faccessat2, returning EPERM, which glibc interprets as EACCES. The 'fix' of changing file permissions is futile. The solution is upgrading the host's container runtime components, not changing the container image.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:02:33.007498+00:00— report_created — created