Live data from Hacker News

Abusing Privileged and Unprivileged Linux Containers

nccgroup.trust

51–54 of 54 posts

Re: Abusing Privileged and Unprivileged Linux Containers

#51
post #24

Earlier quoted context omitted.

Unless I've missed something (and I may have!), FreeBSD's jails have a very respectable security track record. Really, really want to make use of them. I can't give up Debian's package system, though, so I'm left hoping that kFreeBSD will amount to something someday and I use Xen or KVM in the meantime... :-(

> I can't give up Debian's package system, though Why not? What would you miss from it?

[deleted]

Re: Abusing Privileged and Unprivileged Linux Containers

#52
post #46

Earlier quoted context omitted.

This is going to sound amusing at best, but would you clarify what it means to boot? To justify the question a bit: booting traditionally meant physically turning a system on. The boot time included BIOS initialization, a concept now blurred by the advent of virtualization. 150ms is such an absurdly short amount of time that I'm left wondering what booting is in this context.

For perspective, I just timed (not very well) how long it takes windows to run the c-program "exit": "int main() { return 0; }", compiled with gcc 4.8.1, -O3 -std=c11 -Wall, stripped[1]. From a warm disc cache it takes ~3ms. From cold(er) it takes ~19s. Taking a 50x hit to run "exit" from a container doesn't sound bad , but it doesn't sound all that far fetched either. [1] time util from pstools, as installed by scoo…

~19ms, obviously, not 19 seconds.

Re: Abusing Privileged and Unprivileged Linux Containers

#53
post #14

I think what Intel are doing with Clear Containers is really interesting. They are encapsulating containers inside VMs, avoiding the security problems of containers. To do this efficiently they've had to make a bunch of changes on the VM side so the overhead is much smaller than an ordinary VM (of the order of 150ms and 20MB of RAM). I've also been looking at this and am hoping to give a talk about it at the KVM Foru…

[deleted]

Re: Abusing Privileged and Unprivileged Linux Containers

#54
post #24

Earlier quoted context omitted.

> I can't give up Debian's package system, though Why not? What would you miss from it?

I run Debian Testing and FreeBSD 10. I haven't found too much from Debian that I can't get in FreeBSD 10. I could even run a Debian/kFreeBSD jail if I really wanted to. What really does my head in is that a default Debian install can pull down 2 megabytes a second from a server over SFTP, and a default FreeBSD 10 server can only do ~800 kilobytes per second (FreeBSD 9 was worse).

> What really does my head in is that a default Debian install can pull down 2 megabytes a second from a server over SFTP, and a default FreeBSD 10 server can only do ~800 kilobytes per second

Shouldn't be that much of a difference. You might try OpenSSH from ports, maybe the HPN patches will help if you're on a high latency connection.

Post reply on HN