5 ms·
This is exactly what PMG is designed for ie. install/build time process level sandboxing. It currently doesn't support cargo, but I believe the challenges are s
by abhisek 28d ago
This is exactly what PMG is designed for ie. install/build time process level sandboxing. It currently doesn't support cargo, but I believe the challenges are same.
Here is my learning building PMG:
Sandboxing is good when the workload is predictable, and the goal of sandbox is to guard against exploitation of vulnerabilities, like sandbox protecting chrome tabs (renderers). But unfortunately build scripts are not predictable, at least not in npm/pypi world and I have seen build scripts doing weirdest of the things which is no different from malware. When popular packages do weird things, build breaks and users end up turning off the sandbox. This is a perpetual problem to deal with while building sandbox (or any least privilege solution) to protect unbounded workloads.
https://github.com/safedep/pmg https://github.com/safedep/pmg
- Asraelite 28d agoThe "How PMG Works" section on Github does not actually explain how it works
- throwawayqqq11 27d agoThen extend the list. We need isolated build envs AND deterministic builds, like nix does. Id like to add project provided runtime capabilities/permissions (eg. apparmor profiles) to the list to. Maybe the day will come, where projects not providing these things will be considered broken, like nix does.