Giter Club home page Giter Club logo

Comments (4)

chiraag-nataraj avatar chiraag-nataraj commented on August 19, 2024

It'd be nice if there was a way to allow discord to only access /tmp/discord.sock, while leaving the rest of /tmp hidden. Right now, discord.profile ignores the private-tmp command, exposing the host's /tmp folder.

Actually, I just found that removing ignore private-tmp seems to let discord work just fine. I'll tenatively comment out that line and mark this as solved, but let me know if it breaks on your end (it seems to work just fine on mine).

from firejail-profiles.

chiraag-nataraj avatar chiraag-nataraj commented on August 19, 2024

Also, the whitelist lines mean that it only has access to /tmp/.X11-unix and /tmp/user/1000. Not the best, but not exactly the worst either. As you said, it's not really possible right now to deal with this since discord doesn't support passing an existing socket (otherwise, writing a wrapper script would be easy).

from firejail-profiles.

chiraag-nataraj avatar chiraag-nataraj commented on August 19, 2024

Ooh! One way around this is to do the following:

  1. Make a directory /tmp/user/1000/discord1000
  2. Pass TMPDIR=/tmp/user/1000/discord1000 as an environment variable.
  3. Make sure that directory is whitelisted in your firejail profile.
  4. Now it should be able to do this without needing access to anything else!

Off to try this now.

from firejail-profiles.

mid-kid avatar mid-kid commented on August 19, 2024

That's a perfect solution. Thanks!

from firejail-profiles.

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.