Commit Graph

1578 Commits

Author SHA1 Message Date
dlezcano
6b621e0318 From: Daniel Lezcano <daniel.lezcano@free.fr>
Removed usage of the release script.

Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-26 08:33:08 +00:00
dlezcano
8d8370a5ef Remove the release script
From: Daniel Lezcano <daniel.lezcano@free.fr>

Removed the release.sh script which is not in the right place in this source
tree.

Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-26 08:31:52 +00:00
dlezcano
5129b10319 Fixed type in the spec file
From: Daniel Lezcano <daniel.lezcano@free.fr>

Removed typo.

Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-26 08:25:30 +00:00
dlezcano
cf445de362 Check the kernel feature
From: Daniel Lezcano <daniel.lezcano@free.fr>

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@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-25 23:29:24 +00:00
dlezcano
cef07149cd Reduce spec file
From: Daniel Lezcano <daniel.lezcano@free.fr>

Simplified the spec file

Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-25 23:27:00 +00:00
dlezcano
b0a33c1eb6 From: Daniel Lezcano <daniel.lezcano@free.fr>
Console support for the system container.

Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-25 21:52:38 +00:00
dlezcano
2b3b608310 From: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-25 21:15:46 +00:00
dlezcano
4e2121f525 Remove nsgroup directory when the container dies
From: Daniel Lezcano <daniel.lezcano@free.fr>

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@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-18 21:49:56 +00:00
dlezcano
80a992f719 Comment out the script debug mode
From: Daniel Lezcano <daniel.lezcano@free.fr>

Suppress debug mode in the script

Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-18 21:47:55 +00:00
dlezcano
a6f2de7e5e more info on failure to create directory
From: Amy Griffis <amy.griffis@hp.com>

Add error handling similar to remove_lxc_directory().

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-08 08:30:58 +00:00
dlezcano
91feede190 Conform to rpmlint
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Fix rpmlint warnings.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-05 22:06:21 +00:00
dlezcano
007c98a320 Increment minor version
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Increment minor version

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-05 21:57:01 +00:00
dlezcano
845eac4b88 Create the localstatedir when installing the commands
From: Daniel Lezcano <dlezcano@fr.ibm.com>

For some distros (eg. opensuse), when installing with "make install", the
localstatedir is not created. This modification makes this directory to be
created at the install time.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-05 19:19:46 +00:00
dlezcano
eec659c0eb Ignore files copied by libtool
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Ignore files copied by libtool

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-05 19:17:02 +00:00
dlezcano
84701151f0 Add freezer compatibility for older interface
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Different interface exists for the freezer, "RUNNING" or "THAWED" should
be written to the freezer file, so in case "THAWED", we fall back to
"RUNNING". That allows to support older freezer kernel interface for 2.6.27.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-05 18:36:23 +00:00
dlezcano
952be76a13 *** empty log message *** 2009-01-05 12:17:44 +00:00
dlezcano
d3e00ade76 Remove files provided by libtool and automake
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Remove the files which are provided by libtool and automake.
libtoolize has been added to 'bootstrap' command.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2009-01-05 12:08:14 +00:00
dlezcano
46105d2d1d Removed pointless file
From: Michel Normand <michel.mno@free.fr>

I do not understand the purpose of this file in the doc/ subdir
seems to be useless.

Signed-off-by: Michel Normand <michel.mno@free.fr>
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
2008-12-14 20:26:47 +00:00
dlezcano
892bd61e0f Add Frequently Asked Question to dist tarball
From: Michel Normand <michel.mno@free.fr>

Add FAQ to the dist tarball.

Signed-off-by: Michel Normand <michel.mno@free.fr>
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
2008-12-14 20:24:33 +00:00
dlezcano
a340b3fc00 Add more to cvsignore
From: Michel Normand <michel_mno@laposte.net>

Add more files to .cvsignore, especially the new created files.

Signed-off-by: Michel Normand <michel_mno@laposte.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
2008-12-13 12:32:11 +00:00
dlezcano
1099808017 Describe Ubuntu 8.10 vs libtool problem
From: Michel Normand <michel_mno@laposte.net>

Add an entry in the FAQ about libtool problem on Ubuntu 8.10

Signed-off-by: Michel Normand <michel_mno@laposte.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
2008-12-13 12:19:29 +00:00
dlezcano
7afc269d0e Enforce selinux to disabled
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Enforce selinux to disabled

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-09 17:58:29 +00:00
dlezcano
35f549fe1b Check the libpcap devel is installed
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Check the libpcap devel is installed

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-09 17:49:21 +00:00
dlezcano
063880115c Improve the lxc-debian script
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Changed the lxc-debian script to accept empty password for
ssh connection, and to not share the /dev directory with the
system.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-09 17:39:58 +00:00
dlezcano
ed502555f4 Change access mount and check on the console
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Changed to access the console to the rootfs directly.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-09 17:38:18 +00:00
dlezcano
719c46e12b Allow to use /dev/ptmx
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Added /dev/ptmx to the devices.allow list.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-09 10:35:37 +00:00
dlezcano
94d12f0aad Enqueue cgroup value in the right order
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Use the list_add_tail function to add the elements at the end of the list
so when the cgroup elements are setup, they will be stored in the file
in the right order.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-09 09:43:15 +00:00
dlezcano
da9e3794b5 Allows to enqueue list element instead of pushing on top of the list
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Added the list_add_tail function to add an element at the end of the list.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-09 09:41:47 +00:00
dlezcano
85cbaa06f9 Add cgroup devices whitelist for the debian
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Added thed cgroup whitelist configuration for a debian container.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-09 09:39:49 +00:00
dlezcano
053567ec77 A faq file.
From: Michel Normand <michel_mno@laposte.net>

The FAQ file to be filled.

Signed-off-by: Michel Normand <michel_mno@laposte.net>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-08 17:21:21 +00:00
dlezcano
0d5c3f956d Version 0.5.0 2008-12-03 21:34:45 +00:00
dlezcano
7ad641d5bf Expand the configure directory
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Expand the configure variable specifying the directories in order to use
them directly in the scripts.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-01 11:50:43 +00:00
dlezcano
b6d441f289 Fix some typos
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Fix some typos.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-12-01 11:05:07 +00:00
dlezcano
bad691583c *** empty log message *** 2008-11-30 15:33:10 +00:00
dlezcano
ea39e0c296 *** empty log message *** 2008-11-30 08:10:47 +00:00
dlezcano
6b96cf76c0 Added Makefile file 2008-11-30 08:08:31 +00:00
dlezcano
c9844b8733 Added a script directory for containers creation helper scripts
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Added a directory called 'scripts' where is stored two helpers.
The first one allows to create a mini debian container and the
second one to create a sshd container.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-28 15:36:51 +00:00
dlezcano
6454831676 Added lxc-debian command
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Added the script lxc-debian to the package.
This command allows to debootstrap a debian minimal and configure a container
to run it. Several debian can be installed by invoking the command with a
different container name.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-27 22:09:56 +00:00
dlezcano
76a6d713af Added plugin header
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Added the plugin header for the checkpoint/restart.
That will allow to integrate different CR solutions.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-26 17:38:36 +00:00
dlezcano
078273d5df Make the script to call itself.
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Make the script to call itself, so we can unshare the mount points safely,
they will be automatically unmounted when the command finish.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-26 17:36:54 +00:00
dlezcano
633cb02aa9 Add the more simple utility to unshare the namespaces.
From: Daniel Lezcano <dlezcano@fr.ibm.com>

lt-lxc-unshare <options> [command]
Options are:
	 -f      : fork and unshare (automatic when unsharing the pids)
	 -m      : unshare the mount points
	 -p      : unshare the pids
	 -h      : unshare the utsname
	 -i      : unshare the sysv ipc
	 -n      : unshare the network
	 -u <id> : unshare the users and set a new id
	 if -f or -p is specified, <command> is mandatory)

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-26 17:34:52 +00:00
dlezcano
13832f48ed Add sys admin capabilty to lxc-netstat to mount /proc/net
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Add sys admin capability to lxc-netstat to mount /proc/net.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-26 17:32:16 +00:00
dlezcano
a6b2670f6c Remove annoying compilation message
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Remove annoying compilation message

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-26 17:08:00 +00:00
dlezcano
7c6c0227e3 Fix compilation error
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Remove ';' symbol at the end of the macro.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-26 17:06:19 +00:00
dlezcano
caf249f40e Remove annoying warnings and fix tty for restart
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Remove annoying compilation messages and fix tty for the restart.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-26 17:05:11 +00:00
dlezcano
526e288e42 Add read permission checking for the container
From: Daniel Lezcano <dlezcano@fr.ibm.com>

When an user tries to look at the pids or network information belonging
to a container not owned by the user. The command silently fails, I changed
that to check the read permission, display an error and exit.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-25 17:01:56 +00:00
dlezcano
4bbb9c5793 Add more options for the mount points
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Add the readonly and noexec options for the mount points.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-25 16:57:24 +00:00
dlezcano
f66af38b49 lxc: minimal C/R plugin
From: Cedric Le Goater <clg@fr.ibm.com>

Plugin for columbia CR.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
2008-11-25 13:02:29 +00:00
dlezcano
939229eb16 Pass the ttyname to the lxc_setup function
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Retrieve the ttyname and pass it to the lxc_setup function.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-25 13:00:49 +00:00
dlezcano
6e590161b7 Add the framework for a console
From: Daniel Lezcano <dlezcano@fr.ibm.com>

Add the setup information to create a console. This temporary code will
be improved to take into account ttys and console.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
2008-11-25 12:58:21 +00:00