Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Firejail is cool: https://github.com/netblue30/firejail

Linux namespaces/cgroups but lighter than Docker.

I use it when I want to limit the memory of a Python script:

``` maxmem="56" #GB

firejail --noprofile --rlimit-as=${maxmem}000000000 python myscript.py ```



How is it better for this use case than just using rlimit?


I'm not sure about this specific use case, but a reason for using cgroupv2 over rlimit is that cgroup allows you to limit the resources of a _group_ of processes, which is handy if, say, your Python script uses the `subprocess` module.


have to say: i really like the idea of `firejail firefox` thanks for sharing that!




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

Search: