-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-Diagnostics-coreclruntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Description
Description
This troubleshooting article mentions that createdump can be run as a non-root user, but I have not been successful in doing so. I get the error:
open(/proc/7/mem) FAILED 13 (Permission denied)
I have not found any documentation stating that it requires a root user, only SYS_PTRACE capability.
Reproduction Steps
- Run dotnet as a non-root user in a Linux container in Kubernetes with the
SYS_PTRACEcapability added. - Use
kubectl execto get a shell into the container as the non-root user and try to runcreatedumpon the dotnet process.
Expected behavior
createdump can be run as a non-root user.
Actual behavior
Fails with: open(/proc/7/mem) FAILED 13 (Permission denied)
Regression?
No response
Known Workarounds
Run the container as root in Kubernetes.
Configuration
- .NET Core 3.1 and .NET 6.0.
mcr.microsoft.com/dotnet/runtime:6.0ormcr.microsoft.com/dotnet/runtime:3.1base image.
Other information
No response
Metadata
Metadata
Assignees
Labels
area-Diagnostics-coreclruntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner