points by vagab0nd 6 years ago

> You could completely trust this app if you could ban it from accessing the internet.

Yes. I have a "no-internet" user group on my linux system. Whenever I want to run an untrusted app I run it under that group.

severine 6 years ago

That's interesting, care to share some details?

  • vagab0nd 6 years ago

    Basically create a group and add an iptables rule to it. Something like:

      iptables -I OUTPUT 1 -m owner --gid-owner no-internet -j DROP
    

    And then when you launch the program:

      sg no-internet ./something_fishy
    • panpanna 6 years ago

      Is there anyway this can be done automatically with apparmor or something similar?