Giter Club home page Giter Club logo

Comments (10)

andytson avatar andytson commented on May 31, 2024 1

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.

No9 avatar No9 commented on May 31, 2024

This is an interesting feature - Do you have a sample container definition to illustrate and test the requirement?

from core-dump-handler.

No9 avatar No9 commented on May 31, 2024

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.

No9 avatar No9 commented on May 31, 2024

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.

No9 avatar No9 commented on May 31, 2024

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.

andytson avatar andytson commented on May 31, 2024

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.

andytson avatar andytson commented on May 31, 2024

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.

No9 avatar No9 commented on May 31, 2024

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.

No9 avatar No9 commented on May 31, 2024

lock code seems to be working well - Ran with 5ms intervals and the file uploads uncorrupted.

from core-dump-handler.

No9 avatar No9 commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.