Giter VIP home page Giter VIP logo

Comments (4)

alexlarsson avatar alexlarsson commented on June 11, 2024

I don't think that is necessary. Bwrap passes on fds that it doesn't use by default.

from bubblewrap.

mariospr avatar mariospr commented on June 11, 2024

I think this could have been a false alarm after all, since this morning I used a very simple http server in python to really check whether the socket was being properly passed into the sandbox and I got it working by passing the newly added --no-desktop parameter to flatpak from the service file.

See the code I used for testing this here: https://github.com/mariospr/systemd-socketactivation/tree/flatpak

This said, we still have problems when trying to socket-activate a KA Lite server running inside a flatpak, but latest investigations suggest this might be caused due to how KA Lite uses internally a module call cherrypy to setup the server. Still investigating, though...

from bubblewrap.

matthiasclasen avatar matthiasclasen commented on June 11, 2024

Bwrap passes on fds that it doesn't use by default.

Should it, though ? Isn't that a good way of unintentionally leaking things into the sandbox ?

from bubblewrap.

rhatdan avatar rhatdan commented on June 11, 2024

Well we could add a flag to block leakage, but I think the default is to leak.
One of the sd_notify or socket activation relies on the parent PID of a process to tell the process
whether it cares about the leaked file descriptor, When running in a pid namespace, you might need to change LISTEN_PID to 1?

from bubblewrap.

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.