Coder Social home page Coder Social logo

Comments (5)

izar3 avatar izar3 commented on June 1, 2024

opensnitchd --help

-rules-path string
    Path to load JSON rules from. (default "rules")

This reminds me:

I have not tested environment variables with this argument but they do not work with list of Domains rules

New rule > $HOME/myrules/ UI returns "Lists field must be a directory"

Same with $SUDO_USER

from opensnitch.

rhendric avatar rhendric commented on June 1, 2024

That's an option for the system-wide daemon, right? I want there to be system-wide rules managed by the sysadmin and per-user rules managed by the user; I don't think I can do that with the existing options.

from opensnitch.

izar3 avatar izar3 commented on June 1, 2024

What distro do you use? with systemd, create a user service with the args above

https://wiki.archlinux.org/title/Systemd/User

/usr/lib/systemd/system/opensnitchd.service:
ExecStart=/usr/bin/opensnitchd -rules-path /etc/opensnitchd/rules

from opensnitch.

rhendric avatar rhendric commented on June 1, 2024

NixOS, so yes I have systemd, but unless you're saying it's possible to run two opensnitchd processes at the same time (one for the entire system regardless of who is at the seat, one for the current user) that unfortunately isn't what I'm asking for.

from opensnitch.

gustavo-iniguez-goya avatar gustavo-iniguez-goya commented on June 1, 2024

Hi all,

I think the main problem is, that by default any user can launch the GUI and view all the rules. There's no per-user authentication mechanism. By default, we assume that the GUI is used by the admin(s).
If there're more users on the same computer, right now you'll have to restrict the use of the GUI to the admins.

If the rules are stored in a world-readable location is a another issue. Rules are not world-readable, and one can remove world-readable permissions to the rules directory if needed.

By the way @rhendric , could you explain in detail the use case of this feature request? just out of curiosity O:)

So I'd love it if there were a configurable secondary rule location in the user's home that, on startup, the OpenSnitch GUI would read and then send to the daemon as until-restart rules (perhaps also restricted to the current user?). The rule editor should allow for a rule to be saved as a system or a user rule and, in the case of the latter, persist the rule file to this secondary location if it is permanent.

We should add the concept of users to the GUI, separate privileges for read (view) and write rules by user.

Right now adding a secondary rule location per user wouldn't make any difference, because you can view and edit all the rules with the GUI.

Previous discussions: #388 , #983

from opensnitch.

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.