News for hackers. Stuff that matters.
Re:How does Docker affect energy consumption? by derefr on Friday May 05, 2017 @07:09PM (#14277497)
> For one, this would work because it does work, right now in Erlang.

Eh? Erlang has no equivalent to cgroups/namespaces, or even an equivalent of non-UID-0 code execution on its VM. There is in fact no isolation mechanism in the Erlang VM; all code is "privileged." Untrusted multitenant code execution is a pipe-dream for now, unless you graft on another sandbox inside Erlang, ala CouchDB's V8 C-port [and more recently luerl] sandboxes.

(I've been very much considering contributing code for "non-privileged Erlang processes" and "Erlang process namespaces"—adding things like "namespace outboxes" that will crash their own virtual nodes rather than flood peers—but it's not there right now.)

Re:How does Docker affect energy consumption? by infogulch on Friday May 05, 2017 @08:41PM (#14277960)
Well, no, it doesn't have privilege isolation. But it does have isolation from a fault tolerance perspective which I admit is only a portion of the purpose of isolation.

But if you're deliberately running malicious code even cgroups/namespaces won't save you from some attacks. Timing and cache attacks can be done without breaking out of the jail.

Re:How does Docker affect energy consumption? by derefr on Friday May 05, 2017 @10:18PM (#14278319)
Not deliberately running malicious code, no; but deliberately running user-supplied code, yes. A properly isolated container system (whether at the OS or the runtime level) allows one system to serve as host for the programmatic equivalent of members of two rival gangs (mutually-untrustworthy processes), without anyone "getting shot."
Re:How does Docker affect energy consumption? by infogulch on Monday May 08, 2017 @11:22AM (#14292292)
Separating "malicious code" from "user-supplied code" is a distinction without a difference.

I would say one member having their private keys stolen[1] is a "fatal shot".

[1]: https://news.ycombinator.com/item?id=11891579