4 ms·
This interesting, I have never seen setcap. It seems it doesn't work with scripts (ruby, python) and if you are using JVM/mono/beam you will need to setcap the
by jaredklewis 10y ago
This interesting, I have never seen setcap. It seems it doesn't work with scripts (ruby, python) and if you are using JVM/mono/beam you will need to setcap the whole VM, but a very cool solution for a language like Go with binaries!
- m45t3r 10y agoMy two cents, you probably need to apply setcap in Python interpreter itself instead of the script. It shouldn't be a problem though, since you probably will use a virtualenv anyway. Another option would be to drop privileges at runtime.
- poooogles 10y ago>It shouldn't be a problem though, since you probably will use a virtualenv anyway. virtualenvs don't create a new interpreter, they just fudge the python path? Definitely not recommended on interpreted languages (although we use it all the time on our go apps).
- m45t3r 10y agoThey create a copy of the binary of the interpreter, you can even call it directly instead of activating the virtualenv first.