Quoting Stéphane Graber (stgra...@ubuntu.com):
> Update lxc-test-unpriv to be a bit simpler and more reliable.
>
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/lxc-test-unpriv | 71
> ++-
> 1 file changed, 39 insertion
After this patch, starting an unprivileged container using
cgmanager gets the cgroup chown to the container root, so
that it can install the cgmanager (proxy) and make cgroup
requests.
(Still desirable and not in this patch is the automatic setup of
/sys/fs/cgroup/manager/sock, which you can curre
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Drop 60s delay and clear config before loading it.
>
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/createtest.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/tests/createtest.c b/
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/clonetest.c | 8
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/tests/clonetest.c b/src/tests/clonetest.c
> index b04ab3c..efd673e 10064
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/lxc/lxccontainer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index 1520cd3..fbf0824 100644
> -
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Eh, it was useful at one time :)
Acked-by: Serge E. Hallyn
> ---
> src/tests/shutdowntest.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/src/tests/shutdowntest.c b/src/tests/shutdowntest.c
> index e8
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/saveconfig.c | 10 ++
> 1 file changed, 10 insertions(+)
>
> diff --git a/src/tests/saveconfig.c b/src/tests/saveconfig.c
> index a455294..e87c74d 100644
> --- a
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/shutdowntest.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/tests/shutdowntest.c b/src/tests/shutdowntest.c
> index fc4e8fd..e8a7126 100644
> --- a/src/t
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/lxc-test-usernic | 8
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/tests/lxc-test-usernic b/src/tests/lxc-test-usernic
> index f3194dd
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/lxc-test-ubuntu | 9 +
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/src/tests/lxc-test-ubuntu b/src/tests/lxc-test-ubuntu
> index 7fa1c89..
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/lxc-test-usernic | 136
> -
> 1 file changed, 74 insertions(+), 62 deletions(-)
>
> diff --git a/src/tests/lxc-test-usernic
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> src/tests/lxc-test-unpriv | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/tests/lxc-test-unpriv b/src/tests/lxc-test-unpriv
> index ff2a44a..1e75eea 1
Drop 60s delay and clear config before loading it.
Signed-off-by: Stéphane Graber
---
src/tests/createtest.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/tests/createtest.c b/src/tests/createtest.c
index b53c963..ba3a387 100644
--- a/src/tests/createtest.c
+++ b/src/
Signed-off-by: Stéphane Graber
---
src/tests/clonetest.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/tests/clonetest.c b/src/tests/clonetest.c
index b04ab3c..efd673e 100644
--- a/src/tests/clonetest.c
+++ b/src/tests/clonetest.c
@@ -80,9 +80,9 @@ int main(int a
On 2014/1/24 1:17, Serge Hallyn wrote:
> Quoting Qiang Huang (h.huangqi...@huawei.com):
>> I already reasoned in the added comment, we need this because if not,
>> lxc_container won't be freed when daemon exits, and PID file won't
>> be unlinked either.
>
> I see, but
>
>> What about this:
>>
>>
The geteuid() addition is being made the first element of the lxc_list,
but the first element is just a head whose entry is ignored. Therefore
userns_exec_1() was starting its tasks without the caller's uid mapped
into the namespace.
Signed-off-by: Serge Hallyn
---
src/lxc/conf.c | 52 +
Signed-off-by: Stéphane Graber
---
src/tests/shutdowntest.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/tests/shutdowntest.c b/src/tests/shutdowntest.c
index e8a7126..6e4bb31 100644
--- a/src/tests/shutdowntest.c
+++ b/src/tests/shutdowntest.c
@@ -68,8 +68,6 @@ int main(int argc, cha
Signed-off-by: Stéphane Graber
---
src/lxc/lxccontainer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index 1520cd3..fbf0824 100644
--- a/src/lxc/lxccontainer.c
+++ b/src/lxc/lxccontainer.c
@@ -1957,7 +1957,7 @@ static bool l
Signed-off-by: Stéphane Graber
---
src/tests/saveconfig.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/src/tests/saveconfig.c b/src/tests/saveconfig.c
index a455294..e87c74d 100644
--- a/src/tests/saveconfig.c
+++ b/src/tests/saveconfig.c
@@ -98,6 +98,16 @@ int main(int argc, c
Signed-off-by: Stéphane Graber
---
src/tests/shutdowntest.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/tests/shutdowntest.c b/src/tests/shutdowntest.c
index fc4e8fd..e8a7126 100644
--- a/src/tests/shutdowntest.c
+++ b/src/tests/shutdowntest.c
@@ -61,6 +61,7 @@ int main(int argc, char
Signed-off-by: Stéphane Graber
---
src/tests/lxc-test-usernic | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/tests/lxc-test-usernic b/src/tests/lxc-test-usernic
index f3194dd..d00b223 100755
--- a/src/tests/lxc-test-usernic
+++ b/src/tests/lxc-test-usernic
@@ -27,
Signed-off-by: Stéphane Graber
---
src/tests/lxc-test-ubuntu | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/tests/lxc-test-ubuntu b/src/tests/lxc-test-ubuntu
index 7fa1c89..be69eec 100755
--- a/src/tests/lxc-test-ubuntu
+++ b/src/tests/lxc-test-ubuntu
@@ -23,7 +2
Signed-off-by: Stéphane Graber
---
src/tests/lxc-test-usernic | 136 -
1 file changed, 74 insertions(+), 62 deletions(-)
diff --git a/src/tests/lxc-test-usernic b/src/tests/lxc-test-usernic
index e641cb9..f3194dd 100755
--- a/src/tests/lxc-test-usernic
Signed-off-by: Stéphane Graber
---
src/tests/lxc-test-unpriv | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tests/lxc-test-unpriv b/src/tests/lxc-test-unpriv
index ff2a44a..1e75eea 100755
--- a/src/tests/lxc-test-unpriv
+++ b/src/tests/lxc-test-unpriv
@@ -34,7 +34,7 @@ cl
Hello,
Due to the recent changes in lxc-plamo.in related to environment
variables, lxc-plamo is now able to create variant containers with
additional environment variables other than the default configuration.
For example:
# Add "09_kernel" category to the default configuration
CATEGORIES="00_ba
Update lxc-test-unpriv to be a bit simpler and more reliable.
Signed-off-by: Stéphane Graber
---
src/tests/lxc-test-unpriv | 71 ++-
1 file changed, 39 insertions(+), 32 deletions(-)
diff --git a/src/tests/lxc-test-unpriv b/src/tests/lxc-test-unpriv
i
On Wed, 2014-01-22 at 10:35 -0500, Stéphane Graber wrote:
> On Wed, Jan 22, 2014 at 09:29:23AM -0500, Michael H. Warfield wrote:
> > On Tue, 2014-01-21 at 20:25 -0500, Stéphane Graber wrote:
> > > On Tue, Jan 21, 2014 at 11:56:56AM -0500, Michael H. Warfield wrote:
> > > > Update Fedora and CentO
Update CentOS and Fedora templates to support archtecture option.
Added code to the CentOS and Fedora templates so that x86 32 bit containers
may be built on x86_64 platforms. Like archectectures may also be trivially
used as well.
Option added is "-a {arch}".
Additionally cleaned up some bash
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 0b3a6504e51795e738de8e017c22d209a93bc169
https://github.com/lxc/lxc/commit/0b3a6504e51795e738de8e017c22d209a93bc169
Author: Serge Hallyn
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M src/lxc/conf.c
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 2a9a80cb1c93064e36ba194659de741f9816528a
https://github.com/lxc/lxc/commit/2a9a80cb1c93064e36ba194659de741f9816528a
Author: Serge Hallyn
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M src/lxc/conf.c
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 1354955b02bca17d72162f2d61f38e72edea792f
https://github.com/lxc/lxc/commit/1354955b02bca17d72162f2d61f38e72edea792f
Author: Serge Hallyn
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M src/lxc/bdev.c
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: f6639e3bee908381e5d36732c847e5f22affc278
https://github.com/lxc/lxc/commit/f6639e3bee908381e5d36732c847e5f22affc278
Author: Serge Hallyn
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M src/lxc/cgmana
Hi Serge,
On Thu, Jan 23, 2014 at 11:28:46AM -0600, Serge Hallyn wrote:
> Quoting Robert Vogelgesang (vo...@users.sourceforge.net):
> > > +static long get_value(const char *dir, const char *file)
> > > +{
> > > + FILE *f;
> > > + char path[MAXPATHLEN];
> > > + int ret, retv;
> > > +
> > > + retv =
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: bfb1bb94c8d86c5e09ff3624aaa6a4bfb2c4c807
https://github.com/lxc/lxc/commit/bfb1bb94c8d86c5e09ff3624aaa6a4bfb2c4c807
Author: Stéphane Graber
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M Makefile.am
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: fec822c4a0612211ed8f32e662183e1cee4f1489
https://github.com/lxc/lxc/commit/fec822c4a0612211ed8f32e662183e1cee4f1489
Author: Serge Hallyn
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M src/lxc/cgroup
Quoting Stéphane Graber (stgra...@ubuntu.com):
> This script is outdated and unused.
>
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> Makefile.am| 3 +--
> runapitests.sh | 50 --
> 2 files changed, 1 insertion(+), 52 de
This script is outdated and unused.
Signed-off-by: Stéphane Graber
---
Makefile.am| 3 +--
runapitests.sh | 50 --
2 files changed, 1 insertion(+), 52 deletions(-)
delete mode 100644 runapitests.sh
diff --git a/Makefile.am b/Makefile.am
inde
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: ff5e27510540a2ee3c66d8496996313d01bb848f
https://github.com/lxc/lxc/commit/ff5e27510540a2ee3c66d8496996313d01bb848f
Author: Stéphane Graber
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M configure.a
Quoting Stéphane Graber (stgra...@ubuntu.com):
> Signed-off-by: Stéphane Graber
Acked-by: Serge E. Hallyn
> ---
> configure.ac | 1 +
> doc/Makefile.am| 1 +
> doc/lxc-config.sgml.in | 114
> +
> 3 files changed, 116 insert
Quoting Robert Vogelgesang (vo...@users.sourceforge.net):
> > +static long get_value(const char *dir, const char *file)
> > +{
> > + FILE *f;
> > + char path[MAXPATHLEN];
> > + int ret, retv;
> > +
> > + retv = snprintf(path, MAXPATHLEN, "%s/%s", dir, file);
> > + if (retv < 0 || retv >=
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 47f5ede0ec09b393779a7755aa36dc665e2e8fa5
https://github.com/lxc/lxc/commit/47f5ede0ec09b393779a7755aa36dc665e2e8fa5
Author: Qiang Huang
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M src/lxc/cgroup.
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: a8117b3361c9caf1397f4dc9bbb5e6de3af3cdff
https://github.com/lxc/lxc/commit/a8117b3361c9caf1397f4dc9bbb5e6de3af3cdff
Author: Qiang Huang
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M src/lxc/cgroup.
Quoting Qiang Huang (h.huangqi...@huawei.com):
> Function file_exists() needs a absolute full path, but we are using
> current_entire_path which is not. It will get the wrong result from
> file_exists() and case Segmentation fault when we fopen a non-exist
> file and try to fscanf from it.
>
> Sig
Quoting Robert Vogelgesang (vo...@users.sourceforge.net):
> Hi Serge,
>
> your patch uses the same concept as mine, but it won't work, as noted
> below.
>
> If you can wait until Monday, I could send you a cleaned-up and tested
> version of my patch; I have to do other things today and tomorrow.
Quoting Qiang Huang (h.huangqi...@huawei.com):
>
> Signed-off-by: Qiang Huang
> ---
Acked-by: Serge E. Hallyn
> src/lxc/cgroup.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c
> index 34bf126..9513e96 100644
> --- a/src/lxc/cgr
Quoting Qiang Huang (h.huangqi...@huawei.com):
> I already reasoned in the added comment, we need this because if not,
> lxc_container won't be freed when daemon exits, and PID file won't
> be unlinked either.
I see, but
> What about this:
>
> From 80f3862f9c4dbc8a05e79e50c50e79e30ffebc25 Mon Se
Signed-off-by: Stéphane Graber
---
configure.ac | 1 +
doc/Makefile.am| 1 +
doc/lxc-config.sgml.in | 114 +
3 files changed, 116 insertions(+)
create mode 100644 doc/lxc-config.sgml.in
diff --git a/configure.ac b/configure.a
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: fb261f53fcad6a04473172c9c9b68ae1cc5afc7b
https://github.com/lxc/lxc/commit/fb261f53fcad6a04473172c9c9b68ae1cc5afc7b
Author: KATOH Yasufumi
Date: 2014-01-23 (Thu, 23 Jan 2014)
Changed paths:
M configure.ac
Hi!
I have translated these man pages into Japanese, and sent pull request
on github.
https://github.com/lxc/lxc/pull/144
--
KATOH Yasufumi / ka...@jazz.email.ne.jp
___
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcon
Hi Serge,
your patch uses the same concept as mine, but it won't work, as noted
below.
If you can wait until Monday, I could send you a cleaned-up and tested
version of my patch; I have to do other things today and tomorrow.
On Wed, Jan 22, 2014 at 10:49:00AM -0600, Serge Hallyn wrote:
> When c
50 matches
Mail list logo