Hacker News new | past | comments | ask | show | jobs | submit login

> Preventing exfiltration of any data outside of the downloads dir.

Except for all the data it needs access to. I'm not so sure torrent programs will continue to function correctly if they can't re-read their config file, in my experience most want access to a temp directory, the ability to run a few external applications like rar or zip, etc. Most torrent programs need access to more than just the directory where downloads end up when complete.

> Preventing execution of new programs.

This gets spicy if the torrent program is written in an interpreted language like python, no?

I honestly don't have much faith in how far unveil/pledge can restrict in this scenario, but as a result of this discussion I now have an OBSD box again so I can test and play around with it.

> If you're willing to refactor the code a bit

That's beyond the scope of the question. It's bad enough there is no mechanism to sandbox binaries where you don't have access to the code, talking about rewriting programs to solve the issue is some kobayashi maru nonsense.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: