Re: [lxc-devel] [PATCH] Check for existing ptmx symlink

2011-05-27 Thread Daniel Lezcano
On 05/27/2011 09:44 AM, Cedric Le Goater wrote: On 05/23/2011 11:22 PM, Daniel Lezcano wrote: On 05/21/2011 08:35 PM, Sven Wegener wrote: It's OK, if /dev/ptmx points to /dev/pts/ptmx via a symlink. Signed-off-by: Sven Wegenersven.wege...@stealer.net Applied. That would be a nice thing

Re: [lxc-devel] [PATCH 0/2] Template update for Oneiric and armel

2011-05-26 Thread Daniel Lezcano
On 05/24/2011 08:19 PM, Stéphane Graber wrote: Some small template changes to add Oneiric and fix armel support. Stéphane Graber (2): Convert all Debian (and derivative) templates from using 'arch' to using 'dpkg --print-architecture' as debootstrap does Add initial oneiric

[lxc-devel] [GIT] lxc branch, master, updated. 77890c6d6b198b68808a7ec3d0c4f0dbe87c0374

2011-05-23 Thread Daniel Lezcano
sven.wege...@stealer.net Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 88d413d5b6d1c2a3afcc7e3fcc0c037730c0abbe Author: Sven Wegener sven.wege...@stealer.net Date: Mon May 23 23:12:24 2011 +0200 Add relatime and strictatime mount options Also add #ifndef for compability

Re: [lxc-devel] [PATCH] Add relatime and strictatime mount options

2011-05-23 Thread Daniel Lezcano
On 05/21/2011 08:35 PM, Sven Wegener wrote: Also add #ifndef for compability with glibc before 2.12. Signed-off-by: Sven Wegenersven.wege...@stealer.net Applied Thanks. -- What Every C/C++ and Fortran developer Should

Re: [lxc-devel] [PATCH] Check for existing ptmx symlink

2011-05-23 Thread Daniel Lezcano
On 05/21/2011 08:35 PM, Sven Wegener wrote: It's OK, if /dev/ptmx points to /dev/pts/ptmx via a symlink. Signed-off-by: Sven Wegenersven.wege...@stealer.net Applied. Thanks Sven. -- What Every C/C++ and Fortran

Re: [lxc-devel] [PATCH] traffic control setup

2011-05-20 Thread Daniel Lezcano
On 05/07/2011 01:30 PM, Farcasi Ana-Maria wrote: Hello, This commit adds traffic control support (download and upload limit rate) for lxc containers. At the moment, the changes apply just for veth devices. In order to do this, we have attached a new structure (lxc_traffic_control) to struct

[lxc-devel] [GIT] lxc branch, master, updated. 820339bd965d6ca4c0dc11b783d689a3efc0cc68

2011-05-20 Thread Daniel Lezcano
files is to be distributed in the lxc tarball. This breaks the lxc-attach command because the file is not automatically generated at compile time. Signed-off-by: Cedric Le Goater c...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

[lxc-devel] [GIT] lxc branch, master, updated. dfafa5a51397b4d3ced980ca80340f383701f823

2011-05-05 Thread Daniel Lezcano
- commit dfafa5a51397b4d3ced980ca80340f383701f823 Author: Cedric Le Goater legoa...@free.fr Date: Thu May 5 12:07:51 2011 +0200 lxc-execute: document the '--' option Signed-off-by: Cedric Le Goater c...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

Re: [lxc-devel] lxc-simple: porcelain over lxc commands

2011-04-18 Thread Daniel Lezcano
On 04/07/2011 12:29 AM, Nigel McNie wrote: On 6 April 2011 23:01, Daniel Lezcanodaniel.lezc...@free.fr wrote: On 04/03/2011 11:14 AM, Nigel McNie wrote: Hi List, snip Nigel, Thanks a lot, that's a great work and it is exactly what I was hoping someone will do. I will be happy to take

Re: [lxc-devel] Bug#620921: Detecting a non-root container

2011-04-18 Thread Daniel Lezcano
On 04/12/2011 04:14 PM, Marco d'Itri wrote: On Apr 12, Daniel Lezcanodaniel.lezc...@free.fr wrote: At the first glance udev events are supported in the container. But for the sake of optimization, I recommend to not use it as it will trigger the events in all the containers. This looks

Re: [lxc-devel] lxc-simple: porcelain over lxc commands

2011-04-06 Thread Daniel Lezcano
On 04/03/2011 11:14 AM, Nigel McNie wrote: Hi List, I saw there was a call for a nice frontend over the lxc commands, and I needed one, so Martyn Smith and I have come up with lxc-simple [0]. Quoting the docs: lxc-simple wraps around the low-level commands for controlling linux containers,

[lxc-devel] [GIT] lxc branch, master, updated. 25df6b78d2d013ee12e63ca80db3e572d89dcd6c

2011-04-06 Thread Daniel Lezcano
as lxc_log_init() hasn't been called. This prevents errors from even being printed on stderr in lxc_caps_init() for example. Let's make stderr the default appender. Signed-off-by: Greg Kurz gk...@fr.ibm.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

Re: [lxc-devel] [PATCH 1/5] lxc_unshare: edit help output

2011-03-22 Thread Daniel Lezcano
On 03/19/2011 04:09 PM, Michael Santos wrote: Signed-off-by: Michael Santosmichael.san...@gmail.com --- All patches applied. Thanks -- Daniel -- Enable your software for Intel(R) Active Management Technology to

[lxc-devel] [GIT] lxc branch, master, updated. 1a91da6ca6b3679944757cad2aef93d85ea33ed0

2011-03-22 Thread Daniel Lezcano
script to properly use $@ in place of $* Signed-off-by: Michel Normand michel@free.fr Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/lxc-ls.in |4 ++-- src/lxc/lxc

Re: [lxc-devel] [PATCH] lxc-* tools are vulnerable for arguments with spaces

2011-03-22 Thread Daniel Lezcano
On 03/15/2011 08:19 PM, Michel Normand wrote: this is related to the bug http://sourceforge.net/tracker/?func=detailaid=3113612group_id=163076atid=826303 that suggested to modify bash lxc script to properly use $@ in place of $* Signed-off-by: Michel Normandmichel@free.fr Applied, thanks

Re: [lxc-devel] lxc final thesis

2011-03-19 Thread Daniel Lezcano
On 03/18/2011 06:40 PM, Farcasi Ana-Maria wrote: Hello, As mentioned in our previous email, we were having issues getting bandwidth limitation working on cgroup ( with net_cls ) and tc. We've been running various tests and scenarios but found no way to enable proper limitation. Throughout

[lxc-devel] [GIT] lxc branch, master, updated. 071a2b8cc9e2f219b7b20378dc0fafded0333176

2011-03-14 Thread Daniel Lezcano
071a2b8cc9e2f219b7b20378dc0fafded0333176 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Mon Mar 14 21:47:15 2011 +0100 fix mount path Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/conf.c |2 +- 1 files changed

Re: [lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread Daniel Lezcano
On 03/11/2011 08:47 PM, richard -rw- weinberger wrote: hi, i'm using this minimal config: lxc.utsname = c0 lxc.mount.entry = none /lxc/c0/proc proc defaults 0 0 lxc.rootfs = /lxc/c0/ but lxc does not mount proc into /lxc/c0/proc. using lxc.mount = /path/to/fstab also does not work. it's

Re: [lxc-devel] lxc_veth_create() fails

2011-03-10 Thread Daniel Lezcano
On 03/10/2011 10:45 PM, richard -rw- weinberger wrote: hi! i'm trying to use lxc 0.7.4 on centos 5.5 (kernel 2.6.37.3). lxc-start fails when i configure a network. e.g: lxc-start: failed to create vethivvZMG-vethGjB0lG : Operation not supported lxc-start: failed to create netdev

Re: [lxc-devel] Hot-add network devices in LXC

2011-03-10 Thread Daniel Lezcano
On 03/11/2011 02:00 AM, Carlos N. A. Corrêa wrote: Hi, people. I'm trying to implement a mechanism to permit the addition of a new network device to a container on-the-fly. That would be useful to me in some complex virtual networking scenarios, where a container need to connect to a

[lxc-devel] [GIT] lxc branch, lxc-0.7.4.X, created. 525ff3a55575dd376f95f6d54b3521e481f1e3d7

2011-03-07 Thread Daniel Lezcano
- commit 525ff3a55575dd376f95f6d54b3521e481f1e3d7 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Mar 7 02:13:18 2011 +0100 lxc-0.7.4.1 Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit b693b38534f9046fcb3872033d953eb20c67e358

[lxc-devel] [GIT] lxc branch, master, updated. d472214b8342a0b705ed40e358cf9caff427042a

2011-03-06 Thread Daniel Lezcano
- commit d472214b8342a0b705ed40e358cf9caff427042a Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Mar 7 02:08:47 2011 +0100 rename physical device to the original name Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

[lxc-devel] [GIT] lxc branch, lxc-0.7.4.1, created. 525ff3a55575dd376f95f6d54b3521e481f1e3d7

2011-03-06 Thread Daniel Lezcano
- commit 525ff3a55575dd376f95f6d54b3521e481f1e3d7 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Mar 7 02:13:18 2011 +0100 lxc-0.7.4.1 Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit b693b38534f9046fcb3872033d953eb20c67e358

Re: [lxc-devel] lxc final thesis

2011-03-02 Thread Daniel Lezcano
On 02/28/2011 11:20 AM, Farcasi Ana-Maria wrote: Hi, Indeed, we were refering to the network bandwidth limitation. Sorry for the confusion. We have already done some tests with this limitation using tc and cgroups and we have reached the conclusion that the classification is done

Re: [lxc-devel] lxc final thesis

2011-03-02 Thread Daniel Lezcano
On 02/28/2011 11:20 AM, Farcasi Ana-Maria wrote: Hi, Indeed, we were refering to the network bandwidth limitation. Sorry for the confusion. We have already done some tests with this limitation using tc and cgroups and we have reached the conclusion that the classification is done

[lxc-devel] lxc-0.7.4 released

2011-02-26 Thread Daniel Lezcano
when calling locale-gen. Daniel Lezcano (29): remove duplicate cgroup header Remove unused nscgroup field Change nscgroup interface encapsulate the ns_cgroup Move common code to lxc_cgroup_create use clone_children cgroup's flag Duplicate lxc-debian

Re: [lxc-devel] Anybody used FUSE in a container?

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 05:24 AM, Rob Landley wrote: After investigating I don't see any reason sshfs shouldn't work just fine in a container out of the box (all the network stuff happens in userspace), but I can't create the FUSE dev node from within the container because mknod doesn't work from the

Re: [lxc-devel] Anybody looked at unshare(2)?

2011-02-23 Thread Daniel Lezcano
On 02/23/2011 05:22 AM, Rob Landley wrote: It looks like clone flags aren't the only way to create a new namespace, any existing process can move to a new namespace via unshare(2). This sounds like you could fairly easily make a super_chroot() function that does most of the container stuff.

Re: [lxc-devel] do pid1 and pid2 run in the same network namespace

2011-02-22 Thread Daniel Lezcano
On 02/22/2011 12:22 PM, Maheswara Reddy C - ERS, HCL Tech wrote: Then it is quite easy. You just have to fork ten times the routine in the program I gave you in the previous email. Hi Daniel, But I want to run two different (fork() run same copy) process/threads in each namespace, that's

Re: [lxc-devel] Updating the web page?

2011-02-21 Thread Daniel Lezcano
On 02/21/2011 11:08 AM, Daniel Lezcano wrote: On 02/17/2011 02:49 AM, Rob Landley wrote: I want to collate the kernel namespaces documentation, man pages, and add some cgroup docs under a documentation page. This involves changing the Pages link on the left (to which somebody added a link

Re: [lxc-devel] lxc on android?

2011-02-15 Thread Daniel Lezcano
On 02/15/2011 01:34 AM, Trent W. Buck wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 02/11/2011 06:21 AM, Ludovic Guégan wrote: Hi all, First, thanks! I am looking for a way to have a lxc container running inside an Android device. So far my goal is to isolate a process as a

Re: [lxc-devel] Putting man pages on website?

2011-02-15 Thread Daniel Lezcano
On 02/15/2011 08:27 AM, Rob Landley wrote: On 02/14/2011 06:24 PM, Trent W. Buck wrote: Sorry about the previous post. I'm awake now. If I remove the .in from common_options.sgml.in and see_also.sgml.in, and change lxc-console.sgml.in's prelude to ?xml version='1.0' encoding='UTF-8'?

Re: [lxc-devel] Putting man pages on website?

2011-02-15 Thread Daniel Lezcano
On 02/15/2011 03:37 PM, Rob Landley wrote: On 02/15/2011 04:29 AM, Daniel Lezcano wrote: PS: the extension ought to be .xml, not .sgml, and I recommend you switch from Emacs' sgml-mode to nxml-mode, which is the default for .xml files in recent GNU Emacs releases. I'd rather not get any emacs

Re: [lxc-devel] [PATCH] fix broadcast compution

2011-02-13 Thread Daniel Lezcano
On 02/12/2011 04:17 PM, David Ward wrote: Daniel, On 02/06/2010 03:29 PM, Daniel Lezcano wrote: diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 4d81ac6..7c72752 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -423,9 +423,8 @@ static int config_network_ipv4(const char

Re: [lxc-devel] lxc on android?

2011-02-11 Thread Daniel Lezcano
On 02/11/2011 10:55 AM, Ludovic Guégan wrote: Hi Lezcano! I am glad to here from you! Android SDK comes with a modified qemu inside which android runs: http://developer.android.com/guide/developing/tools/emulator.html Here you can find how to rebuild the kernel for the emulator (a little

Re: [lxc-devel] Socket creation in namespace

2011-02-09 Thread Daniel Lezcano
On 02/09/2011 01:07 PM, Maheswara Reddy C - ERS, HCL Tech wrote: Hi, How can we create a socket in the specific namespace. It is not obvious today. You will need to create several processes, each of them with their own network namespace and via an af_unix socket ask for a socket creation.

Re: [lxc-devel] Putting man pages on website?

2011-02-07 Thread Daniel Lezcano
On 02/07/2011 04:19 PM, Rob Landley wrote: Does the makefile's man page generation stuff do html files? Because if so I'd like put them on the web page, it's some of the best documentation on the thing and people trying to learn about containers can't find it via google... Yep, you can use

Re: [lxc-devel] Kernel Samepage Merging

2011-02-07 Thread Daniel Lezcano
On 02/07/2011 08:19 PM, richard -rw- weinberger wrote: Hi, Can KSM (http://lwn.net/Articles/306704/) help LXC? I guess there are a lot of identical pages when logs of containers are running. Yes, absolutely. As it is very CPU consuming that should be optional. I looked at it last year but I

[lxc-devel] [GIT] lxc branch, master, updated. 9dd97e44141558170a4a5f39b3eda645d9cade2d

2011-02-01 Thread Daniel Lezcano
other notification email; so we list those revisions in full, below. - Log - commit 9dd97e44141558170a4a5f39b3eda645d9cade2d Author: Daniel Lezcano daniel.lezc...@free.fr Date: Tue Feb 1 12:55:39 2011 +0100 lxc-0.7.4-rc1

[lxc-devel] [GIT] lxc branch, master, updated. 829dd9183cbefccdf38f87463fa5c2719e774204

2011-02-01 Thread Daniel Lezcano
829dd9183cbefccdf38f87463fa5c2719e774204 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Tue Feb 1 14:49:40 2011 +0100 lxc-start can output the console to a file Add the ability to specify a file to output the console. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

[lxc-devel] [GIT] lxc tag, lxc-0.7.4-rc1, created. 829dd9183cbefccdf38f87463fa5c2719e774204

2011-02-01 Thread Daniel Lezcano
- commit 829dd9183cbefccdf38f87463fa5c2719e774204 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Tue Feb 1 14:49:40 2011 +0100 lxc-start can output the console to a file Add the ability to specify a file to output the console

[lxc-devel] [PATCH 1/2] export env variable in lxc_start

2011-01-27 Thread Daniel Lezcano
; } exit 0; end script respawn exec /sbin/getty -8 38400 /dev/console === Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/lxc_start.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[lxc-devel] [GIT] lxc branch, master, updated. 434d90db57e3d94609b48e2bc3c17777e56eac3a

2011-01-23 Thread Daniel Lezcano
434d90db57e3d94609b48e2bc3c1e56eac3a Author: Daniel Lezcano daniel.lezc...@free.fr Date: Sun Jan 23 21:47:12 2011 +0100 suppress udev log output We use udev within these containers and we prevent the /dev files to be created with the cgroup whitelist. So when the udevd receives the event from the kernel

[lxc-devel] [GIT] lxc branch, master, updated. fb4c7e28291f013ae30e21108177556fdff870d1

2011-01-18 Thread Daniel Lezcano
: b3a222e52e4d4be77cc4520a57af1a4a0d8222d1 Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/lxc-checkconfig.in |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) hooks/post-receive -- lxc

Re: [lxc-devel] [patch] Fix lxc-checkconfig for kernel 2.6.32

2011-01-18 Thread Daniel Lezcano
On 01/18/2011 01:13 AM, Reto Gantenbein wrote: Dear developers I'm trying lxc on my gentoo 2.6.37 and this patch fixes a small thing that makes people unsure [1]. Please apply it. It's against lxc git master. Thanks for your effort in lxc. It's nice to see a native linux container

[lxc-devel] [GIT] lxc branch, master, updated. b0efbac48e8646ba62aca04b43acaa887ef4ec81

2011-01-17 Thread Daniel Lezcano
boolean operator was being used to test the IFF_UP flag. Signed-off-by: David Ward david.w...@ll.mit.edu Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit 6e35af2e3911b5e8dc6e9091391beb8adfe449c6 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Jan 17 10:18:50 2011 +0100

Re: [lxc-devel] [PATCH] Only bring up network interface if IFF_UP is set

2011-01-17 Thread Daniel Lezcano
On 01/17/2011 03:51 AM, David Ward wrote: Each network interface was brought up regardless of the configuration, as the wrong boolean operator was being used to test the IFF_UP flag. Signed-off-by: David Warddavid.w...@ll.mit.edu --- Applied. Thanks for the fix ! -- Daniel

Re: [lxc-devel] [PATCH] Mounting of filesystems from fstab file

2011-01-16 Thread Daniel Lezcano
On 01/16/2011 07:00 PM, Joerg Gollnick wrote: Dear all, while setting up a container on x86_64 (archlinux host/guest) I had trouble with mounting dev/pts and others from container.fstab and a ssh login does not work (only ssh container bash -i gives you a shell) The cause is that conf.c does

[lxc-devel] [GIT] lxc branch, master, updated. 429a84f4ab9eb0e5b85b9fe94336c56746279b28

2011-01-10 Thread Daniel Lezcano
- commit 429a84f4ab9eb0e5b85b9fe94336c56746279b28 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Mon Jan 10 17:58:32 2011 +0100 fix cgroup directory removal Fix the name of the directory to remove. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com commit

Re: [lxc-devel] How does the console work in most recent release?

2011-01-05 Thread Daniel Lezcano
On 01/05/2011 08:53 AM, Rob Landley wrote: On 01/04/2011 06:52 AM, Daniel Lezcano wrote: On 01/04/2011 09:36 AM, Rob Landley wrote: I'm attempting to write a simple HOWTO for setting up a container with LXC. Unfortunately, console handling is really really brittle and the only way I've gotten

Re: [lxc-devel] How does the console work in most recent release?

2011-01-05 Thread Daniel Lezcano
On 01/04/2011 09:36 AM, Rob Landley wrote: I'm attempting to write a simple HOWTO for setting up a container with LXC. Unfortunately, console handling is really really brittle and the only way I've gotten it to work is kind of unpleasant to document. Using lxc 0.7.3 (both in debian sid and

Re: [lxc-devel] [PATCH 1/4] Setting default suite to squeeze in debian template.

2010-12-16 Thread Daniel Lezcano
On 12/16/2010 04:03 PM, Daniel Baumann wrote: On 12/16/2010 02:56 PM, Daniel Lezcano wrote: Yes that makes sense. I will duplicate in order to apply your patches and then factor out the scripts to a minimal one. i've got another one for LANG where the locales are generated wrongly

Re: [lxc-devel] did the new kernel 2.6.36 support a full sysfs namespace for tun/tap device?

2010-12-07 Thread Daniel Lezcano
On 12/07/2010 11:10 AM, 贺鹏 wrote: Hi, all: did the new kernel 2.6.36 support a full sysfs namespace for tun/tap device? I am not sure, but yes it should. sysfs per namespace is in place since 2.6.35 AFAIR.

Re: [lxc-devel] [Lxc-users] regular lxc development call?

2010-12-02 Thread Daniel Lezcano
On 12/02/2010 03:21 PM, Serge E. Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): On 11/30/2010 04:06 AM, Serge E. Hallyn wrote: Quoting Daniel Lezcano (daniel.lezc...@free.fr): Looks like we'll be starting small anyway, so let's just try skype. Anyone interested

[lxc-devel] [GIT] lxc branch, master, updated. 968fbd36057db3132c68a63700e42929e5df5e2d

2010-10-30 Thread Daniel Lezcano
-start: Invalid argument - failed to mount ... errors. Signed-off-by: Sergey S. Kostyliov rathamah...@gmail.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: src/lxc/conf.c |5

Re: [lxc-devel] [PATCH] add support for dirsync mount option

2010-10-30 Thread Daniel Lezcano
On 10/30/2010 09:05 PM, Sergey S. Kostyliov wrote: Add support for `dirsync' mount option. MS_DIRSYNC is on of the mount(2) mountflags so don't send it as extra mount option to avoid: lxc-start: Invalid argument - failed to mount ... errors. Signed-off-by: Sergey S.

[lxc-devel] [GIT] lxc tag, lxc-0.7.3, created. acb0e330161f9b02bd0b351e0a8cc193da4de330

2010-10-26 Thread Daniel Lezcano
- commit acb0e330161f9b02bd0b351e0a8cc193da4de330 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Tue Oct 26 18:14:47 2010 +0200 set version to 0.7.3 Version 0.7.3 Signed-off-by: Daniel Lezcano daniel.lezc...@free.fr

[lxc-devel] [PATCH 1/2] fix Coding Style

2010-10-12 Thread Daniel Lezcano
Fix the coding style, 80 chars lines, etc ... Fix indentation blocks if ... then ... else ... fi Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/conf.c | 78 1 files changed, 39 insertions(+), 39 deletions(-) diff --git

[lxc-devel] [GIT] lxc branch, master, updated. abbfd20baa348ce1b6b26dd9c2627c5e2f500b69

2010-10-12 Thread Daniel Lezcano
, below. - Log - commit abbfd20baa348ce1b6b26dd9c2627c5e2f500b69 Author: Daniel Lezcano daniel.lezc...@free.fr Date: Tue Oct 12 10:52:47 2010 +0200 use popen and redirect script output Change the run_script function to use

Re: [lxc-devel] [PATCH] add lxc.network.script(.pre|.post|) configuration hooks

2010-10-08 Thread Daniel Lezcano
On 10/08/2010 05:13 PM, Michael Tokarev wrote: Stefan Tomanek wrote: Dies schrieb Daniel Lezcano (daniel.lezc...@free.fr): Are we sure, we want to add these hooks (pre and post) ? I am not against adding them, but IMO it is more sane to add them if needed rather than adding

Re: [lxc-devel] [PATCH] add lxc.network.veth.script configuration hook

2010-10-07 Thread Daniel Lezcano
On 10/07/2010 09:30 AM, Stefan Tomanek wrote: This commit adds an lxc.network.veth.script configuration option to specify a script to be executed after creating or configuring the pair of veth devices. The name of the host sided device is passed as first argument, so the script can be used to

Re: [lxc-devel] [PATCH] add lxc.network.veth.script configuration hook

2010-10-07 Thread Daniel Lezcano
On 10/07/2010 03:06 PM, Stefan Tomanek wrote: Dies schrieb Daniel Lezcano (daniel.lezc...@free.fr): * lxc.network.script.pre: IMO, it does not make sense because that means it is the host itself which should be modified, so that fall under the host network configuration umbrella

[lxc-devel] [GIT] lxc branch, master, updated. 49d3e78dceea24fcdd09529d1c748b69e19ef63f

2010-10-05 Thread Daniel Lezcano
on any other notification email; so we list those revisions in full, below. - Log - commit 49d3e78dceea24fcdd09529d1c748b69e19ef63f Author: Daniel Lezcano daniel.lezc...@free.fr Date: Tue Oct 5 10:28:31 2010 +0200 update

Re: [lxc-devel] Erroneous cgroup is not mounted when using cgconfig (libcgroup)

2010-10-04 Thread Daniel Lezcano
On 10/03/2010 05:06 PM, Ward, David - 0663 - MITLL wrote: The 'cgconfig' tool from libcgroup (http://libcg.sourceforge.net) can be used to mount one or more instances of the cgroup virtual filesystem, instead of using the 'mount' command. However, cgconfig does not update /etc/mtab,

Re: [lxc-devel] Commits not showing up in git?

2010-10-04 Thread Daniel Lezcano
On 10/04/2010 08:49 PM, Scott Bronson wrote: Hi, this commit and about 8 others haven't showed up in SourceForge's git tree. http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=summary Is there another git tree that the project is using? No, I am just waiting a bit in case there are

[lxc-devel] [PATCH 2/8] use the rootfs mount point for the console

2010-10-03 Thread Daniel Lezcano
The rootfs is always located in the mount point now, let's use it. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/conf.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index aae52f4..7755837 100644 --- a/src/lxc/conf.c

[lxc-devel] [PATCH 3/8] use the rootfs mount point for the tty's

2010-10-03 Thread Daniel Lezcano
The rootfs is always located in rootfs-mount, let's use it for the tty. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/conf.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 7755837..3da522f 100644 --- a/src/lxc

[lxc-devel] [PATCH 1/8] mount the rootfs to the mount directory first

2010-10-03 Thread Daniel Lezcano
Split the rootfs setup by mounting the rootfs to the mount point. This mount point will be used as the facto place where the rootfs is placed. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/conf.c | 28 +--- 1 files changed, 21 insertions(+), 7 deletions

[lxc-devel] [PATCH 5/8] Use container's proc to setup the utmp watching

2010-10-03 Thread Daniel Lezcano
The rootfs/var/run/utmp is located in: /proc/containerinit/root/var/run/utmp, let's use it. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/utmp.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/lxc/utmp.c b/src/lxc

[lxc-devel] [PATCH 6/8] Don't display an error in lxc_file_for_each_line

2010-10-03 Thread Daniel Lezcano
Don't display an error when the callback returns an error different from zero. A value greater than zero may means stop. Let's the caller to check the error. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/parse.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff

[lxc-devel] [PATCH 4/8] Initialize default mount point

2010-10-03 Thread Daniel Lezcano
Let's initialize rootfs-mount to LXCROOTFSMOUNT. The value will be overwritten by the configuration in case it is specified. That will make the code nicer, instead of the ugly rootfs-mount checks. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/conf.c | 27

Re: [lxc-devel] LXC-Cgroup memory controller

2010-09-07 Thread Daniel Lezcano
On 09/07/2010 05:22 PM, jorge espada wrote: Hi Guys I wanna know if it possible to set up a memory controller for each container..if so..how can I do? any examples? Thanks When you start a container, there is a cgroup created automatically where all the processes of the container will

Re: [lxc-devel] Fedora 13 lxc-debian / lxc-fedora templates

2010-09-05 Thread Daniel Lezcano
On 09/02/2010 11:43 AM, v1t03k wrote: Hi Guys, I'm testing here right now some lxc template scripts. I have here some troubles with setting up a debian instance on Fedora 13 (2.6.34.6-47.fc13.x86_64). First, I can't setup a lenny system on my Fedora 13 host. I get these errors: I:

Re: [lxc-devel] cgroup isolation

2010-08-30 Thread Daniel Lezcano
On 08/27/2010 05:52 PM, Denis Rizaev wrote: Hi folks. I tried to mount cgroup fs in container and was surprised that i can see all cgroups tree. Also i can modify limits for my container and others!! In my opinion container should see only it's own level of cgroup, not whole tree. Is it

[lxc-devel] [GIT] lxc branch, master, updated. 547467bddbe54b7812f0df0e9c18a2e1b7091036

2010-07-26 Thread Daniel Lezcano
547467bddbe54b7812f0df0e9c18a2e1b7091036 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Mon Jul 26 11:01:20 2010 +0200 version 0.7.2 Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes: configure.ac |2 +- 1 files changed, 1

Re: [lxc-devel] Very slow lxc-start

2010-07-25 Thread Daniel Lezcano
On 07/25/2010 01:57 PM, Denis Rizaev wrote: Hi guys. In last versions of lxc lxc-start is very slow. On my system with 15 containers it stucks for ~20 seconds before actual container launch begins. With strace i see that it does many umounts in /mnt. Can anyone explain what happens? lxc

[lxc-devel] [GIT] lxc branch, master, updated. e239ff31a5c442ac1d006e836bc622371842dfa0

2010-07-23 Thread Daniel Lezcano
in full, below. - Log - commit e239ff31a5c442ac1d006e836bc622371842dfa0 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Fri Jul 23 15:10:38 2010 +0200 Fix bad returned value In case of error the message will be always

[lxc-devel] [GIT] lxc branch, master, updated. 9de28746a5edd2b9ba6fbd79956891ed4692e5d5

2010-07-23 Thread Daniel Lezcano
9de28746a5edd2b9ba6fbd79956891ed4692e5d5 Author: Michel Normand norm...@fr.ibm.com Date: Fri Jul 23 17:17:14 2010 +0200 avoid compile warning in src/lxc/console.c src/lxc/console.c:143: warning : return type defaults to ‘int’ Signed-off-by: Michel Normand norm...@fr.ibm.com Signed-off-by: Daniel Lezcano

[lxc-devel] [patch -lxc 1/2] fix inverted network interface creation

2010-07-22 Thread Daniel Lezcano
From: Daniel Lezcano daniel.lezc...@free.fr The list is 'lifo', so when we create the network interfaces, we do this in the reverse order of the expected one. That is confusing. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/confile.c |4 ++-- src/lxc/list.h|5

[lxc-devel] [GIT] lxc branch, master, updated. 7a82e9236d94619a1ad7aa6df9e2f10c81dbc344

2010-07-20 Thread Daniel Lezcano
- commit 7a82e9236d94619a1ad7aa6df9e2f10c81dbc344 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Tue Jul 20 13:45:44 2010 +0200 provide a script to set uid bit on cli Some file systems do not support the file posix capabilities. The following script set

[lxc-devel] [GIT] lxc branch, master, updated. 6f0a42008dab87e1c97bc71319c793315f87a328

2010-07-19 Thread Daniel Lezcano
other notification email; so we list those revisions in full, below. - Log - commit 6f0a42008dab87e1c97bc71319c793315f87a328 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Tue Jul 13 14:51:45 2010 +0200 lxc-init finishes

[lxc-devel] [GIT] lxc branch, master, updated. 1c4a945262b8d110c3f8e0655ca50cb05d383c74

2010-07-19 Thread Daniel Lezcano
1c4a945262b8d110c3f8e0655ca50cb05d383c74 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Mon Jul 19 16:04:41 2010 +0200 Remove dead code This function is no longer used. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- Summary of changes

Re: [lxc-devel] a container can remount ro the host's mount point

2010-07-19 Thread Daniel Lezcano
On 04/01/2010 06:42 AM, Michael H. Warfield wrote: Daniel, I'm going to top post here because I've just discovered that we've got a bigger problem here, related to this whole mess. A much bigger problem having to do with bind mounts in general. This is the generalized case here, which

Re: [lxc-devel] [PATCH 0/5] Signal stuff v2 and some documentation

2010-07-15 Thread Daniel Lezcano
On 07/15/2010 10:07 PM, Ferenc Wagner wrote: Daniel Lezcanodaniel.lezc...@free.fr writes: On 06/09/2010 07:56 PM, Ferenc Wagner wrote: here are basically the same patches, with some obvious errors corrected and some unrelated documentation added. It actually survived some

Re: [lxc-devel] [PATCH 1/2]: Ensure freezer state has changed

2010-07-15 Thread Daniel Lezcano
On 07/15/2010 02:59 AM, Matt Helsley wrote: On Fri, Jul 09, 2010 at 07:51:32PM -0700, Sukadev Bhattiprolu wrote: From: Sukadev Bhattiprolusuka...@linux.vnet.ibm.com Subject: [PATCH 1/2] Ensure frezer state has changed A write to the freezer.state file does not gurantee that the state has

[lxc-devel] [patch -lxc 2/4] generalize the name of the signal handler

2010-07-15 Thread Daniel Lezcano
From: Ferenc Wagner wf...@niif.hu Signed-off-by: Ferenc Wagner wf...@niif.hu Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/start.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 92f44e3..1d4087c 100644

[lxc-devel] [patch -lxc 3/4] lxc-init kills all processes with SIGTERM

2010-07-15 Thread Daniel Lezcano
When lxc-init receives a SIGTERM, let's kill all the processes of the pid namespace with kill -1. So the exit of the container will happen gracefully with processes death cascade. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/lxc_init.c | 14 -- 1 files changed, 12

[lxc-devel] [patch -lxc 4/4] lxc-init finishes the remaining processes with SIGKILL

2010-07-15 Thread Daniel Lezcano
If lxc-init receives a SIGALRM, a timeout, it kills all the processes of the container with SIGKILL. That will prevent the container to be stuck when one process ignore the SIGTERM signal. Each time a process exits, the timeout is resetted. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

[lxc-devel] [patch -lxc 1/4] forward signals to the container init

2010-07-15 Thread Daniel Lezcano
From: Ferenc Wagner wf...@niif.hu Signed-off-by: Ferenc Wagner wf...@niif.hu Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/start.c | 22 ++ 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index dc57bea

Re: [lxc-devel] [PATCH 0/5] Signal stuff v2 and some documentation

2010-07-12 Thread Daniel Lezcano
On 06/09/2010 07:56 PM, Ferenc Wagner wrote: Hi, here are basically the same patches, with some obvious errors corrected and some unrelated documentation added. It actually survived some targeted testing in the past days and seems to behave as expected, ie. # lxc-start -n s -- sh -c trap

[lxc-devel] [patch -lxc 2/6] add a macro to wrap a privilegied function

2010-07-12 Thread Daniel Lezcano
This macro is a helper to call a function into a [un]privilegied section. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/caps.h | 33 ++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/lxc/caps.h b/src/lxc/caps.h index bdc248b

[lxc-devel] [patch -lxc 5/6] fix console overwrite any file

2010-07-12 Thread Daniel Lezcano
Prevent to specify a file not belonging to us as the output for the console Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/console.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lxc/console.c b/src/lxc/console.c index 1ab2b29..edefc41

[lxc-devel] fix security holes when running lxc as non-root

2010-07-12 Thread Daniel Lezcano
Thanks all for the feedbacks. The following patchset provides an intermediate solution between all the remarks about the security aspects when running lxc with the capabilities. It has the advantage to be compatible with the setuid bit root set on the lxc-start and lxc-execute. More work has to

[lxc-devel] [patch -lxc 6/6] Remove dead code

2010-07-12 Thread Daniel Lezcano
This function is no longer used. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/state.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/src/lxc/state.c b/src/lxc/state.c index b29ae09..6720011 100644 --- a/src/lxc/state.c +++ b/src/lxc/state.c

[lxc-devel] [patch -lxc 3/6] initialize capabilities for lxc-start and lxc-execute

2010-07-12 Thread Daniel Lezcano
Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/lxc_execute.c |5 - src/lxc/lxc_start.c |4 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/lxc/lxc_execute.c b/src/lxc/lxc_execute.c index c3a0cd7..f480859 100644 --- a/src/lxc/lxc_execute.c +++ b

[lxc-devel] [patch -lxc 4/6] fix log appending to any file

2010-07-12 Thread Daniel Lezcano
With the capabilities, the open of the log file can be done on any file, making possible to modifify the content of the file. Let's drop the privilege when opening the file, so we ensure that is no longer possible. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/log.c |6

[lxc-devel] [patch -lxc 1/6] remove/restore effective capabilities

2010-07-12 Thread Daniel Lezcano
is not root, we keep the capabilies, switch to real uid, and drop the effective capabilities. This approach is compatible for root user, lambda + file capabilities and lambda + setuid. Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com --- src/lxc/Makefile.am |5 +- src/lxc/caps.c | 135

[lxc-devel] [GIT] lxc branch, master, updated. d1c383f39064969b647fd632f8e6614b49fd6cf2

2010-07-12 Thread Daniel Lezcano
, below. - Log - commit d1c383f39064969b647fd632f8e6614b49fd6cf2 Author: Daniel Lezcano dlezc...@fr.ibm.com Date: Mon Jul 12 15:13:18 2010 +0200 fix compilation warning Add missing include. Signed-off-by: Daniel

Re: [lxc-devel] [PATCH 2/2] Must unfreeze while stopping container

2010-07-12 Thread Daniel Lezcano
On 07/10/2010 04:52 AM, Sukadev Bhattiprolu wrote: [ ... ] + if (!answer.ret) { + ret = lxc_unfreeze(handler-name); + if (!ret) + return 0; [ ... ] gcc -DHAVE_CONFIG_H -I. -I../../src -fPIC -DPIC -I../../src -g -O2 -Wall -MT

[lxc-devel] [GIT] lxc branch, master, updated. ebb9ec72ce494cbee4bb445604d6527fbaefde5b

2010-07-06 Thread Daniel Lezcano
ebb9ec72ce494cbee4bb445604d6527fbaefde5b Author: Tushar Gohad tgo...@mvista.com Date: Tue Jul 6 23:45:52 2010 +0200 Minor resource name array fix in src/lxc/namespace.c Signed-off-by: Tushar Gohad tgo...@mvista.com Signed-off-by: Daniel Lezcano dlezc...@fr.ibm.com

<    1   2   3   >