Comments (10)
The following triggers a segfault after setuid, and the fs.suid_dumpable flag default of 0 provides no coredump, whereas 2 it does.
It's not otherwise as simple as su -c 'kill -11 $$' app
as the segfault has to be in the setuid process rather than child process
https://gist.github.com/andytson-inviqa/e1c933ccaa1825a9c4449cbf823c3c13
from core-dump-handler.
This is an interesting feature - Do you have a sample container definition to illustrate and test the requirement?
from core-dump-handler.
Quick update I have an implementation of this here https://github.com/IBM/core-dump-handler/tree/suid-support
My quay.io access is broken due to the move to SSO so I need to setup another account to host the images and test.
Should get that done soon and I'll merge after that.
from core-dump-handler.
Actually setting up the new quay repo was easier than I thought
https://quay.io/repository/icdh/core-dump-handler?tab=builds
I have to wrap up for the day but you can point the chart to
quay.io/icdh/core-dump-handler:suid-support
to test
from core-dump-handler.
Tested the https://github.com/IBM/core-dump-handler/tree/suid-support branch with the command
kubectl run -i -t segfaulter --image=quay.io/icdh/segfaulter --restart=Never
Where quay.io/icdh/segfaulter is based on the code initially supplied. -> https://github.com/No9/segfaulter
There was a nit in the quote escaping in the chart but now seems to work and core-dumps are generated as expected.
I'll let this sit for a few days and if there's no further feedback I'll merge
from core-dump-handler.
I've tested it myself and it appears to work as expected.
One comment though, but should SUID_LIMIT instead be called SUID_DUMPABLE?
As for quotes in helm, I tend to do value: {{ .VAR | quote }}
as that ensures proper escaping
from core-dump-handler.
also thanks for the logs location fix, I was wondering why it was in /node without a container mount to view it
from core-dump-handler.
Appreciate the feedback - changed to SUID_DUMPABLE and used quote - thanks for the tip.
If there's nothing else I'll validate the file lock code I've also put in and then do a release.
from core-dump-handler.
lock code seems to be working well - Ran with 5ms intervals and the file uploads uncorrupted.
from core-dump-handler.
Merged #11 and built release v2.1.0
Thanks again @andytson for opening this issue and providing great feedback.
Please let me know if you have any other good ideas
from core-dump-handler.
Related Issues (20)
- Clarify compatibility with Google Kubernetes HOT 4
- got error Bucket Creation Failed: serde_xml: ParseIntError: invalid digit found in string with AWS IAM s3 HOT 8
- pullSecrets is not used inside daemonset.yaml HOT 6
- multi tenant support HOT 6
- latest musl images are not available HOT 3
- Support for application level artifacts HOT 3
- composer.log is missing in agent HOT 5
- Kubernetes 1.23+ does not mount service account token anymore HOT 1
- SELinux blocks cdc from running
- Additional troubleshooting advice? HOT 1
- Deployment error fails to EKS HOT 3
- Duplicate file names in generated zip files HOT 1
- Core dump files housekeeping HOT 2
- Compatibility with Oracle Kubernetes Engine. HOT 11
- Core dump generates random uuid instead of using pod uuid HOT 2
- Memory cleanup after crash dump taken
- configurable priorityClassName for daemonset pods HOT 1
- Using an s3 compatible storage - fails to connect on error upload Failed reqwest: HOT 7
- In Kubernetes: Mounts of the hostdir doubling with every restart HOT 3
- Capture proc data to be able to generate minidump HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core-dump-handler.