* lxc : linux containers tool 0.6.0 release
@ 2009-02-20 15:04 Daniel Lezcano
[not found] ` <499EC673.8020808-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Lezcano @ 2009-02-20 15:04 UTC (permalink / raw)
To: Linux Containers
Hi All,
A new version of the liblxc has been released, lxc-0.6.0.
This version provides a new set of features:
* take into account the devpts new instance
* we can log to the container with the tty, lxc-console
* we can use a directory or a block device as a rootfs
* lxc-debian script build a lenny debian
* various fix and improvement
One important information:
==========================
*** lxc will no longer need a patched kernel, all the kernel features
are available in the 2.6.29 kernel ***
Thanks for the contributions and the feedbacks.
Below a detailed log of the modifications:
2009-02-20 15:13 dlezcano
* scripts/lxc-debian.in: Add the pts configuration for lxc-debian
From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Add the pts configuration when creating a debian container.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-16 12:25 dlezcano
* src/lxc/: parse.c, parse.h: Add missing files to CVS
2009-02-16 11:22 dlezcano
* src/lxc/: Makefile.am, lxc_conf.c, lxc_config.c, lxc_unshare.c:
Factor out some code From: Daniel Lezcano
<daniel.lezcano-GANU6spQydw@public.gmane.org>
Factor out some code and especially the parsing of text file
functions.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-16 11:21 dlezcano
* src/lxc/lxc_conf.c: Support block device for the rootfs From:
Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Allow to specify a block device as the rootfs. The creation of
the container will try with brute force to determine the file
system type.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-16 11:19 dlezcano
* lxc.spec.in, src/lxc/Makefile.am: Add more capabilities From:
Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
lxc-execute and lxc-create need capability to mount.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-16 11:14 dlezcano
* src/lxc/lxc_conf.c: Make use of realpath From: Daniel Lezcano
<daniel.lezcano-GANU6spQydw@public.gmane.org>
The realpath function is more convenient to build the absolute
path of the rootfs.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-16 11:13 dlezcano
* src/lxc/lxc_conf.c: Mount bind the rootfs directory From: Daniel
Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Instead of using a symlink to the rootfs, just mount bind the
rootfs directory.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-16 11:11 dlezcano
* scripts/lxc-debian.in: Remove some pointless debian services
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Remove some debian services because they don't have sense in a
container, like the hw clock or the unmount of the file systems.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-12 15:48 dlezcano
* doc/lxc.conf.sgml.in: Update the man according new devpts
instance From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Update the man page with the new devpts instance option.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-12 15:48 dlezcano
* src/lxc/lxc_conf.c: setup the new pts instance From: Daniel
Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
The pts new instance is setup conforming the documentation in the
kernel sources, Documentation/filesystems/devpts.txt.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-12 15:47 dlezcano
* src/lxc/: error.c, error.h, lxc_conf.c, lxc_conf.h, lxc_config.c:
add the new pts instance configuration From: Daniel Lezcano
<dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
This patch adds the configuration for a new pts instance.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-12 15:47 dlezcano
* src/lxc/lxc_conf.c: build a set of flags for the different
enabled subsystems From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
When we want to check if a subsystem is enabled, we look at the
presence of a file/directory in the configuration tree files.
That works until we chroot into the rootfs. Some subsystem should
be preferably setup after the chrootfs, making the code simpler
and easier to read. So before setup the different subsystem, I
build a flags set and reuse it later to check if the subsystem is
enabled or not.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-12 15:46 dlezcano
* TODO: Add a TODO file
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
The TODO file should be filled.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-09 18:11 dlezcano
* scripts/lxc-debian.in: add missing ifupdown package to
debootstrap From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Add the ifupdown missing package.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-09 18:10 dlezcano
* scripts/lxc-debian.in: Update lxc-debian to use the lenny release
From: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
With the release of lenny nearing this patch may soon be useful.
Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> Signed-off-by:
Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-09 18:10 dlezcano
* bootstrap: Create the m4 directory if it does not exist From:
Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Create the m4 directory if it does not exist
Reported-by: Dietmar Maurer <dietmar-YTcQvvOqK21BDgjK7y7TUQ@public.gmane.org> Signed-off-by:
Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-05 13:03 dlezcano
* scripts/lxc-debian.in: handle interruption/failure of lxc-debian
more gracefully
From: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
If lxc-debian fails or is interrupted during debootstrap then the
next invocation of lxc-debian breaks because it only checks for
the existence of the directory. This forces the user to remove
the cache by hand to retry the create step.
Let's allow the user to re-run lxc-debian to resume/retry. Store
the cache in a partial-$ARCH directory until debootstrap
succeeds. Then move the valid cache to its final destination.
Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> Signed-off-by:
Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-02-02 15:50 dlezcano
* configure.in, src/lxc/start.c: Add signalfd function definition
From: Dietmar Maurer <dietmar-YTcQvvOqK21BDgjK7y7TUQ@public.gmane.org>
The signalfd function prototype and the signalfd header file is
not defined in the debian Lenny. We want to use this debian
version with a newer kernel.
This patch gives the signalfd function prototype, because the
function is available in the glibc-2.7 which is the version
coming with debian Lenny.
Signed-off-by: Dietmar Maurer <dietmar-YTcQvvOqK21BDgjK7y7TUQ@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-29 11:50 dlezcano
* scripts/lxc-debian.in: Complete use of autoconf prefix in
lxc-debian
From: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
The lxc-debian script does not consistently address the lxc lock
as @LOCALSTATEDIR@/lock/subsys/lxc. Make consistent use of the
autotools substitution to completely enable configure --prefixes.
I also added a comment explaining why some of the paths didn't
need autoconf substitutions for anyone who wants to understand
the script. Also, to separate it from the container contents
proper, I moved the CACHE variable initialization above the
container-internal path variables.
Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> Signed-off-by:
Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-28 17:33 dlezcano
* src/lxc/lxc_conf.c: From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
This modification removes the tty configuration file and makes
the tty to be usable with the local tty.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-26 20:43 dlezcano
* lxc.spec.in, src/lxc/lxc_cgroup.c, src/lxc/lxc_checkpoint.c,
src/lxc/lxc_console.c, src/lxc/lxc_destroy.c,
src/lxc/lxc_execute.c, src/lxc/lxc_freeze.c, src/lxc/lxc_info.c,
src/lxc/lxc_monitor.c, src/lxc/lxc_priority.c,
src/lxc/lxc_restart.c, src/lxc/lxc_start.c, src/lxc/lxc_stop.c,
src/lxc/lxc_unfreeze.c, src/lxc/lxc_unshare.c,
src/lxc/lxc_wait.c: Fixed bad variable type
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Fixed the type of the opt variable. On the powerpc architecture,
that leads to an infinite loop in the getopt inspection because
getopt returns 255 instead of -1 as expected. The opt variable
should be an int and not a char.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-26 09:33 dlezcano
* Makefile.am: From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Removed usage of the release script.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-26 09:31 dlezcano
* release.sh: Remove the release script
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Removed the release.sh script which is not in the right place in
this source tree.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-26 09:25 dlezcano
* lxc.spec.in: Fixed type in the spec file
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Removed typo.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-26 00:29 dlezcano
* configure.in, config/acinclude.m4: Check the kernel feature
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
The virtual devices are automatically destroyed when the network
namespace dies for the kernel version >= 2.6.29. Until this
version the network devices have to be destroyed by lxc. This
modification checks the version of the kernel to make lxc to
destroy the network devices or not.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-26 00:27 dlezcano
* lxc.spec.in: Reduce spec file
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Simplified the spec file
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-25 22:52 dlezcano
* configure.in, doc/Makefile.am, doc/lxc-console.sgml.in,
doc/lxc.conf.sgml.in, doc/lxc.sgml.in, scripts/lxc-debian.in,
src/lxc/Makefile.am, src/lxc/af_unix.c, src/lxc/af_unix.h,
src/lxc/checkpoint.c, src/lxc/console.c, src/lxc/create.c,
src/lxc/destroy.c, src/lxc/error.c, src/lxc/error.h,
src/lxc/lxc.h, src/lxc/lxc_conf.c, src/lxc/lxc_conf.h,
src/lxc/lxc_config.c, src/lxc/lxc_console.c, src/lxc/lxc_init.c,
src/lxc/lxc_lock.c, src/lxc/lxc_start.c, src/lxc/mainloop.c,
src/lxc/mainloop.h, src/lxc/restart.c, src/lxc/start.c,
src/lxc/stop.c: From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Console support for the system container.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-25 22:15 dlezcano
* lxc.spec.in: From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-24 23:49 dlezcano
* scripts/lxc-debian.in, src/lxc/Makefile.am, src/lxc/af_unix.c,
src/lxc/af_unix.h, src/lxc/checkpoint.c, src/lxc/console.c,
src/lxc/create.c, src/lxc/destroy.c, src/lxc/error.c,
src/lxc/error.h, src/lxc/lxc.h, src/lxc/lxc_console.c,
src/lxc/lxc_init.c, src/lxc/lxc_lock.c, src/lxc/lxc_start.c,
src/lxc/restart.c, src/lxc/start.c, src/lxc/stop.c: From: Daniel
Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Consolidate the tty management. Permission on the container is
checked. The tty can be re-attached.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-18 23:11 dlezcano
* src/lxc/: Makefile.am, af_unix.c, lxc_conf.c, lxc_conf.h,
lxc_config.c, lxc_console.c, lxc_init.c, mainloop.c, mainloop.h,
start.c: From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Console code. At this point, we are able in the container to add
the ttys in the inittab file. The configuration should specify
how many tty we want in the container.
Rights are not yet supported - anyone can use the tty of any
container. Resizing of the tty is not supported - and probably
won't be.
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-18 22:49 dlezcano
* src/lxc/cgroup.c: Remove nsgroup directory when the container
dies
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Remove the nsgroup directory when the container dies, otherwise
this will lead to an error when the pids number are recycled
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-18 22:47 dlezcano
* scripts/lxc-debian.in: Comment out the script debug mode
From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Suppress debug mode in the script
Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-08 17:56 dlezcano
* src/lxc/: lxc_conf.c, lxc_conf.h, lxc_config.c, restart.c,
start.c: Add the tty configuration
From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Add the number of ttys for the configuration.
This modification makes the start to instantiate the pseudo-ttys
and to mount the slave side to the tty of the system container.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-08 15:41 dlezcano
* src/lxc/: Makefile.am, error.c, error.h, lxc_conf.c, lxc_conf.h:
Create and setup the ttys function
From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Create the function to instantiate the ttys, map them to the root
filesystem and to delete them.
The create function look at the number of tty wanted by the
configuration and will instantiate this number of pseudo-tty.
The delete function close the pseudo-ttys and frees the memory.
The setup function, map the slave pty on the tty of the root
filesystem belonging to the container.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-08 11:21 dlezcano
* src/lxc/: Makefile.am, af_unix.c, af_unix.h: Add af_unix helpers
From: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Add a set of wrapper to handle af_unix sockets. The functions
allows to create both traditional or abstract unix socket via a
simple "open" call and provide a fd passing facility.
Signed-off-by: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-01-08 09:30 dlezcano
* src/lxc/create.c: more info on failure to create directory
From: Amy Griffis <amy.griffis-VXdhtT5mjnY@public.gmane.org>
Add error handling similar to remove_lxc_directory().
Signed-off-by: Amy Griffis <amy.griffis-VXdhtT5mjnY@public.gmane.org> Signed-off-by:
Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lxc : linux containers tool 0.6.0 release
[not found] ` <499EC673.8020808-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
@ 2009-03-23 7:48 ` anqin
[not found] ` <d95d44a20903230048ke520376gd7701de00ff4e72d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: anqin @ 2009-03-23 7:48 UTC (permalink / raw)
To: Daniel Lezcano; +Cc: Linux Containers
Hi Danial,
I have tried to install the lxc-0.6.0, and fount it needs to prepare
a "libcap-2". I don't very understand what exactly version of libcap-2
points to.
I have searched the repository (via yum, in CentOS5.1) but not found
the libcap version >= 2.0. So, is there anything missing?
Thanks in advance,
anqin
On Fri, Feb 20, 2009 at 11:04 PM, Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org> wrote:
> Hi All,
>
> A new version of the liblxc has been released, lxc-0.6.0.
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lxc : linux containers tool 0.6.0 release
[not found] ` <d95d44a20903230048ke520376gd7701de00ff4e72d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-03-23 8:18 ` Américo Wang
2009-03-23 8:34 ` anqin
0 siblings, 1 reply; 9+ messages in thread
From: Américo Wang @ 2009-03-23 8:18 UTC (permalink / raw)
To: anqin; +Cc: Daniel Lezcano, Linux Containers
On Mon, Mar 23, 2009 at 03:48:44PM +0800, anqin wrote:
>Hi Danial,
>
>I have tried to install the lxc-0.6.0, and fount it needs to prepare
>a "libcap-2". I don't very understand what exactly version of libcap-2
>points to.
>
>I have searched the repository (via yum, in CentOS5.1) but not found
>the libcap version >= 2.0. So, is there anything missing?
Yes?
% rpm -q libcap
libcap-2.10-2.fc10.i386
Even if you don't have it in your repository, you could also try
to compile it by yourself, try:
http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
--
Do what you love, f**k the rest! F**k the regulations!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lxc : linux containers tool 0.6.0 release
2009-03-23 8:18 ` Américo Wang
@ 2009-03-23 8:34 ` anqin
[not found] ` <d95d44a20903230134j5d527b3cn3e7497069c128856-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: anqin @ 2009-03-23 8:34 UTC (permalink / raw)
To: Américo Wang; +Cc: Daniel Lezcano, Linux Containers
got it, thanks
> Even if you don't have it in your repository, you could also try
> to compile it by yourself, try:
>
> http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
>
> --
> Do what you love, f**k the rest! F**k the regulations!
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lxc : linux containers tool 0.6.0 release
[not found] ` <d95d44a20903230134j5d527b3cn3e7497069c128856-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-03-23 8:45 ` anqin
[not found] ` <d95d44a20903230145m441abd8fga4bba277ba783e42-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: anqin @ 2009-03-23 8:45 UTC (permalink / raw)
To: Américo Wang; +Cc: Daniel Lezcano, Linux Containers
but I met comilation error when run "make" in lxc-0.6.0.
It seems lose the libcap-devel.
And, I installed the libcap-devel-2.16.rpm and retried again, but
nothing help.
Any help?
On Mon, Mar 23, 2009 at 4:34 PM, anqin <anqin.qin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> got it, thanks
>
>> Even if you don't have it in your repository, you could also try
>> to compile it by yourself, try:
>>
>> http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
>>
>> --
>> Do what you love, f**k the rest! F**k the regulations!
>>
>>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lxc : linux containers tool 0.6.0 release
[not found] ` <d95d44a20903230145m441abd8fga4bba277ba783e42-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-03-23 8:52 ` Daniel Lezcano
[not found] ` <49C74DB3.50004-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Lezcano @ 2009-03-23 8:52 UTC (permalink / raw)
To: anqin; +Cc: Linux Containers
anqin wrote:
> but I met comilation error when run "make" in lxc-0.6.0.
>
> It seems lose the libcap-devel.
>
> And, I installed the libcap-devel-2.16.rpm and retried again, but
> nothing help.
>
> Any help?
What compilation error do you have ?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lxc : linux containers tool 0.6.0 release
[not found] ` <49C74DB3.50004-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
@ 2009-03-23 8:58 ` anqin
[not found] ` <d95d44a20903230158l42459b45x3cc5e0c05113bb04-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: anqin @ 2009-03-23 8:58 UTC (permalink / raw)
To: Daniel Lezcano; +Cc: Linux Containers
>
> What compilation error do you have ?
>
The compilation error is:
----------------------
...
In file included from start.c:55:
../../src/lxc/lxc.h:175: warning: type qualifiers ignored on function
return type
start.c: In function 'lxc_start':
start.c:339: error: 'PR_CAPBSET_DROP' undeclared (first use in this function)
start.c:339: error: (Each undeclared identifier is reported only once
start.c:339: error: for each function it appears in.)
...
---------------------
The libcap2 is installed manually by source codes
(from http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/)
And then, I installed the libcap-devel-2.16
(from ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/tiwai/openSUSE_10.3/i586/libcap-devel-2.16-2.1.i586.rpm)
In lxc-0.6.0 directory, "./configure" is ok, but "make" throw out the above
error message. It seems some predefination is lost.
Any help? maybe, something wrong in my installation.
Thanks,
anqin
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lxc : linux containers tool 0.6.0 release
[not found] ` <d95d44a20903230158l42459b45x3cc5e0c05113bb04-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-03-23 9:26 ` Daniel Lezcano
[not found] ` <49C755B2.90104-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Lezcano @ 2009-03-23 9:26 UTC (permalink / raw)
To: anqin; +Cc: Linux Containers, LXC Development
anqin wrote:
>> What compilation error do you have ?
>>
>
> The compilation error is:
>
> ----------------------
> ...
> In file included from start.c:55:
> ../../src/lxc/lxc.h:175: warning: type qualifiers ignored on function
> return type
> start.c: In function 'lxc_start':
> start.c:339: error: 'PR_CAPBSET_DROP' undeclared (first use in this function)
> start.c:339: error: (Each undeclared identifier is reported only once
> start.c:339: error: for each function it appears in.)
> ...
> ---------------------
>
> The libcap2 is installed manually by source codes
> (from http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/)
> And then, I installed the libcap-devel-2.16
> (from ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/tiwai/openSUSE_10.3/i586/libcap-devel-2.16-2.1.i586.rpm)
>
> In lxc-0.6.0 directory, "./configure" is ok, but "make" throw out the above
> error message. It seems some predefination is lost.
>
> Any help? maybe, something wrong in my installation.
This compilation error is coming from the distro you are using which
does not provide the PR_CAPBSET_DROP. It has been fixed and will be in
the lxc-0.6.1 which will come as soon as a setcap problem is resolved.
Until I release this new version, you can hack lxc/src/lxc/start.c and add:
#define PR_CAPBSET_DROP 24
That should fix you problem.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: lxc : linux containers tool 0.6.0 release
[not found] ` <49C755B2.90104-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
@ 2009-03-23 9:38 ` anqin
0 siblings, 0 replies; 9+ messages in thread
From: anqin @ 2009-03-23 9:38 UTC (permalink / raw)
To: Daniel Lezcano; +Cc: Linux Containers, LXC Development
Thank you very much.
I have already added the lines:
#ifndef PR_CAPBSET_DROP
#define PR_CAPBSET_DROP 24
#endif
in the start.c, and it works now.
>
> This compilation error is coming from the distro you are using which does
> not provide the PR_CAPBSET_DROP. It has been fixed and will be in the
> lxc-0.6.1 which will come as soon as a setcap problem is resolved.
>
> Until I release this new version, you can hack lxc/src/lxc/start.c and add:
>
> #define PR_CAPBSET_DROP 24
>
> That should fix you problem.
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-03-23 9:38 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-20 15:04 lxc : linux containers tool 0.6.0 release Daniel Lezcano
[not found] ` <499EC673.8020808-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-03-23 7:48 ` anqin
[not found] ` <d95d44a20903230048ke520376gd7701de00ff4e72d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-23 8:18 ` Américo Wang
2009-03-23 8:34 ` anqin
[not found] ` <d95d44a20903230134j5d527b3cn3e7497069c128856-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-23 8:45 ` anqin
[not found] ` <d95d44a20903230145m441abd8fga4bba277ba783e42-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-23 8:52 ` Daniel Lezcano
[not found] ` <49C74DB3.50004-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-03-23 8:58 ` anqin
[not found] ` <d95d44a20903230158l42459b45x3cc5e0c05113bb04-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-23 9:26 ` Daniel Lezcano
[not found] ` <49C755B2.90104-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2009-03-23 9:38 ` anqin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.