Re: [lxc-devel] /proc/cpuinfo per cgroup

2013-11-25 Thread Daniel P. Berrange
On Mon, Nov 25, 2013 at 09:09:40AM -0600, Serge Hallyn wrote: Quoting Marian Marinov (m...@yuhu.biz): Hi guys, I'm using LXC containers for some of my teaching and I want to have /proc/cpuinfo and /proc/memory based on the cgroup limits that I have set. The idea is that if one

Re: [lxc-devel] [systemd-devel] [PATCH] netns: unix: only allow to find out unix socket in same net namespace

2013-08-21 Thread Daniel P. Berrange
On Wed, Aug 21, 2013 at 11:51:53AM +0200, Kay Sievers wrote: On Wed, Aug 21, 2013 at 9:22 AM, Gao feng gaof...@cn.fujitsu.com wrote: On 08/21/2013 03:06 PM, Eric W. Biederman wrote: I suspect libvirt should simply not share /run or any other normally writable directory with the host.

Re: [lxc-devel] [PATCH 11/17] Use srand/rand instead of initstate/random

2013-08-16 Thread Daniel P. Berrange
On Fri, Aug 16, 2013 at 06:01:25PM +0200, Stéphane Graber wrote: On Fri, Aug 16, 2013 at 10:36:58AM -0500, Serge Hallyn wrote: Quoting Stéphane Graber (stgra...@ubuntu.com): initstate/random doesn't work on bionic, srand/rand works on everything, so let's use that. Is rand_r

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Daniel P. Berrange
On Fri, Jul 12, 2013 at 10:27:14AM -0500, Serge Hallyn wrote: Quoting Stéphane Graber (stgra...@ubuntu.com): On Thu, Jul 11, 2013 at 11:51:25PM -0500, Serge Hallyn wrote: Define a sha1sum_file() function in utils.c (which requires configure.ac to check for -lcrypto and -lssl). Use that

Re: [lxc-devel] [PATCH 1/1] lxc_create: prepend pretty header to config file

2013-07-12 Thread Daniel P. Berrange
On Fri, Jul 12, 2013 at 11:00:09AM -0500, Serge Hallyn wrote: Quoting Daniel P. Berrange (berra...@redhat.com): Copy+pasting code for encryption algorithms is really not nice. It means that instead of distributors of your package being able to rely on the fact 'gnutls' is (eg) FIPS

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Daniel P. Berrange
On Thu, Sep 13, 2012 at 11:26:39PM +0200, Christian Seiler wrote: I like the idea but haven't looked at the implementation yet as the patch is really quite large. Quickly scanning through I briefly noticed that the copyright headers for the new files are wrong (refer to IBM and Daniel

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Daniel P. Berrange
On Fri, Sep 14, 2012 at 12:12:57PM +0100, Christian Seiler wrote: If we want to have a back-channel, we'd need a socket, which makes just doing echo RUNNING /dev/lxc-notify impossible, you'd need a special program for that. Having the template scripts dump an additional script or upstart