<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">When I want to clone a container with "lxc-clone -o ctx1 -n ctx2":<br>
There will be some error info about rsync as below:<br>
<br>
<font color="FF0000">Tweaking configuration<br>
Copying rootfs...<br>
rsync: writefd_unbuffered failed to write 4092 bytes to socket [sender]: Broken pipe (32)<br>
rsync: write failed on "/var/lib/lxc/ctx2/rootfs/bin/chown": No space left on device (28)<br>
rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.9]<br>
rsync: connection unexpectedly closed (471 bytes received so far) [sender]<br>
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]<br>
<br>
</font><br>
________________________________________<br>
From: lxc-devel-request@lists.sourceforge.net [lxc-devel-request@lists.sourceforge.net]<br>
Sent: Thursday, December 13, 2012 2:56 PM<br>
To: lxc-devel@lists.sourceforge.net<br>
Subject: Lxc-devel Digest, Vol 52, Issue 31<br>
<br>
Send Lxc-devel mailing list submissions to<br>
lxc-devel@lists.sourceforge.net<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
https://lists.sourceforge.net/lists/listinfo/lxc-devel<br>
or, via email, send a message with subject or body 'help' to<br>
lxc-devel-request@lists.sourceforge.net<br>
<br>
You can reach the person managing the list at<br>
lxc-devel-owner@lists.sourceforge.net<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Lxc-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: [PATCH] Fix race/corruption with multiple lxc-start,<br>
lxc-execute (Serge Hallyn)<br>
2. [PATCH] Renamed ethX => devN on stop (network phys)<br>
(Vitaly Lavrov)<br>
3. [GIT] lxc branch, master, updated.<br>
d984bb4e751121f1a7c0029ee7df4acf62f2eea4 (Daniel Lezcano)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 13 Dec 2012 06:28:03 -0600<br>
From: Serge Hallyn <serge.hallyn@canonical.com><br>
Subject: Re: [lxc-devel] [PATCH] Fix race/corruption with multiple<br>
lxc-start, lxc-execute<br>
To: Dwight Engen <dwight.engen@oracle.com><br>
Cc: lxc-devel@lists.sourceforge.net<br>
Message-ID: <20121213122803.GG5246@sergelap><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Quoting Dwight Engen (dwight.engen@oracle.com):<br>
> If you start more than one lxc-start/lxc-execute with the same name at the<br>
> same time, or just do an lxc-start/lxc-execute with the name of a container<br>
> that is already running, lxc doesn't figure out that the container with this<br>
> name is already running until fairly late in the initialization process: ie<br>
> when __lxc_start() -> lxc_poll() -> lxc_command_mainloop_add() attempts to<br>
> create the same abstract socket name.<br>
><br>
> By this point a fair amount of initialization has been done that actually<br>
> messes up the running container. For example __lxc_start() -> lxc_spawn() -><br>
> lxc_cgroup_create() -> lxc_one_cgroup_create() -> try_to_move_cgname() moves<br>
> the running container's cgroup to a name of deadXXXXXX.<br>
><br>
> The solution in this patch is to use the atomic existence of the abstract<br>
> socket name as the indicator that the container is already running. To do<br>
> so, I just refactored lxc_command_mainloop_add() into an lxc_command_init()<br>
> routine that attempts to bind the socket, and ensure this is called earlier<br>
> before much initialization has been done.<br>
><br>
> In testing, I verified that maincmd_fd was still open at the time of lxc_fini,<br>
> so the entire lifetime of the container's run should be covered. The only<br>
> explicit close of this fd was in the reboot case of lxcapi_start(), which is<br>
> now moved to lxc_fini(), which I think is more appropriate.<br>
><br>
> Even though it is not checked any more, set maincmd_fd to -1 instead of 0 to<br>
> indicate its not open since 0 could be a valid fd.<br>
><br>
> Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 13 Dec 2012 22:22:00 +0300<br>
From: Vitaly Lavrov <vel21ripn@gmail.com><br>
Subject: [lxc-devel] [PATCH] Renamed ethX => devN on stop (network<br>
phys)<br>
To: lxc-devel@lists.sourceforge.net<br>
Message-ID:<br>
<CAKfBFaTOX41DDLsaBvPDvDyGX2vY1u53eDJ=cX-FAccC90hwHw@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
The source of this problem is in linux/net/core/dev.c:default_device_exit()<br>
<br>
The problem can be resolved by means of a patch ( for version 0.8.0 )<br>
<br>
The patch doesn't solve a problem of disappearance of "dummy", "imq",<br>
"ifb" network devices when closing container ( this is kernel problem<br>
).<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: lxc_exit_netdev_fix.patch<br>
Type: application/octet-stream<br>
Size: 1588 bytes<br>
Desc: not available<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 13 Dec 2012 20:55:51 +0000<br>
From: "Daniel Lezcano" <git@users.sourceforge.net><br>
Subject: [lxc-devel] [GIT] lxc branch, master, updated.<br>
d984bb4e751121f1a7c0029ee7df4acf62f2eea4<br>
To: lxc devel <lxc-devel@lists.sourceforge.net><br>
Message-ID:<br>
<mailman.89729.1355432169.2177.lxc-devel@lists.sourceforge.net><br>
<br>
This is an automated email from the git hooks/post-receive script. It was<br>
generated because a ref change was pushed to the repository containing<br>
the project "lxc".<br>
<br>
The branch, master has been updated<br>
via d984bb4e751121f1a7c0029ee7df4acf62f2eea4 (commit)<br>
via 2e3ae157d528212a3bd5d95e8ffa8fa1d67ee9e5 (commit)<br>
via 222fea5a10544018f26d60d73132069fb0fa8797 (commit)<br>
via 769872f9f2c994d8bfd6de906562df64bcd92600 (commit)<br>
via a02264fb1ef8abab2f7aff2d347638e6e831156e (commit)<br>
via ff918b1832307204b106ca7bcaea21ff57370d7a (commit)<br>
via 7323456ec3efe23bb7a84164d3e71d4293998f2c (commit)<br>
via d8521cc3754a740a547b12aa81990d117b5d99ee (commit)<br>
via f2924f7898d6bfbdb30f8f02c87b86880afd79e8 (commit)<br>
via f4d3a9fddbacdd5279f042cc352425a0c01da2b6 (commit)<br>
via 703c562d2ee8572097135003964c7ca7931567c9 (commit)<br>
via f3c7020ad851481d3c95c6deb384326c6cc1a29f (commit)<br>
via d4f6fa926d92803d8b8217468be483ac2f7e270e (commit)<br>
via 794dd12099da53adec33e8291f0f470629f8b8f6 (commit)<br>
via ab4a1501761241e1aa97c3eee6742040dc81a049 (commit)<br>
via 1c6085cdd97cf947237e361245b35c6cdab90357 (commit)<br>
via 2495cc911b6600521fd2dc735edba15f6fbb9081 (commit)<br>
via fe253caa8b98854445aaf6ee253545ee1f13beb1 (commit)<br>
via 75350ec8c77acad383eea8e36b2dc3faeea34460 (commit)<br>
via 7c382572263726e0d90b9550bc8cf4c2ac014efa (commit)<br>
via 14d9c0f09d1a55d124ef210a4b4e205c9fe7596c (commit)<br>
via eba7df9ee0a1963984ef212e7ddfc0e0835af288 (commit)<br>
via 836676caba579f934523aae1c09f2b426f0e45f9 (commit)<br>
via e1483a0275273911b08f8183e31c0fd0565cd11d (commit)<br>
via 483d21ff46cda0dc4f53672c02e48404535d56df (commit)<br>
via f1a3a3ab8feb7374aed232f2d635edc51d2be792 (commit)<br>
via f8ddeaa5be7c883a3d14f977879f6dacaf7a6236 (commit)<br>
via e29bf450cafa2ce2564aeb0b64d2014c17228407 (commit)<br>
via f99c7aa5de9aa1aa7d624380235cbd295a4764b8 (commit)<br>
via 0749e740608de0621fbbd9bd89946f5fbecb8d72 (commit)<br>
via 20cf2e976bf31494e64f05f3d7a2cd5130971502 (commit)<br>
via b1eafd4aeb778fbf86751b2b032f8fb1834e9099 (commit)<br>
via daf04e4ce912839383d649109a6aac66c2b48709 (commit)<br>
via c0b5f522feab43871f0e116eadd9ed992d5fb194 (commit)<br>
via 7b35f3d60a7d007e39b44461181e118bd3942da7 (commit)<br>
via 4245ba50074f33c4bfa8e8b133598767841e712b (commit)<br>
via 6a85cf91247b7dd9c3faeddceca8dacb96d02cd6 (commit)<br>
via 4e7186c53554cdbf4b4b85568daf84740c120505 (commit)<br>
via 4a85ce2ad0d0b24680712c60a6576713d209b7ad (commit)<br>
via 44d397891e691ab994a69766cc72e57265b62da1 (commit)<br>
via 2130af2665f37eafe80291fb9f67b8a48532df8e (commit)<br>
via 6902a6c6642a85c0510e84e96a06e21aee152226 (commit)<br>
via 1d4f064658987210ee46124c39429a80edc7a32d (commit)<br>
via fa0e6e1bf42c92d1e35201322121bcb5e2d30199 (commit)<br>
via 61435768cdd6703e8f2f98bfd134afb4c51d0523 (commit)<br>
via cc423c67391aafe0be46d11db8e63a602eea0d25 (commit)<br>
via 91c3830e225e10f7c2e638965be0f3cf51c8d3f3 (commit)<br>
via 5f29734f7d21907a9c463cf354d1bef5de9f08b5 (commit)<br>
via 89573feb5b507a61738523ecfe1c8fbcb57726b8 (commit)<br>
via 1e1f8eeb147ca46fa81857a8a570feff2c818974 (commit)<br>
via 8e100cef8baf6b92ce4ced8b734e56e2e0aa691d (commit)<br>
via fade719ed906ad7aa73204ca84747047bae3d7bf (commit)<br>
via 18f823c1ca9f750ebad23f45026fcdeddc57a389 (commit)<br>
via e62fa3f9cea8c97fbfa3a3c8e6acc00c420c8363 (commit)<br>
via bf555f03840e1808406b276e0bc240d4fa67859e (commit)<br>
via 000559b5de36e45b0cc54349a9e62dd77766882b (commit)<br>
via 12a50cc6ab5c8a4aa0bcb7ddcd7095265f7bb62b (commit)<br>
via 12ad0f90c17072c8d6024c0ab6eda3f13c94aad0 (commit)<br>
via f910f092e5070b9bec3fdbde1cb778c5eefe0639 (commit)<br>
via b45a7402bf5e6a0c4d03c5a428670bad7c1b4c8e (commit)<br>
via 7ec3fa7139c3be9381b9de1a2deeb6484abd550b (commit)<br>
via 89d35588040a94a3a92a235da163462b1364b4b8 (commit)<br>
via 6b1a07ba086d16cfa822caadf95eab62b70889cd (commit)<br>
via b917ef75223480f0fa86d47eed5951787b86a99f (commit)<br>
via 83cab6e068b64f733dbdd156319b7716b054853a (commit)<br>
via d95db067d28dd0480c2bd71f85668fa8d37e9064 (commit)<br>
via 9ebb03ad4abdd5642e330d73cf339bcbb72c29c1 (commit)<br>
via 2312f31b07690c18ce1b910803ef3f6f7e588f05 (commit)<br>
via 181a9be7e40766d863bb7d52b38a47364d24db80 (commit)<br>
via 2cdb945b1375d4d2fd7f1e01df6d39a54b10d82c (commit)<br>
via bde1853954e7e0a33fec872391c757933c063ae9 (commit)<br>
via f79d43bbe70a01454049b77d6f15f6369744959e (commit)<br>
via c93c7b1a0b0d4548780b9c22fb9ab907783caad1 (commit)<br>
via ad493d03fed380ac151dacb53ddfd01a23aeacee (commit)<br>
via c6883f383e587725552f7c71e96ebe1c34ae7c56 (commit)<br>
via 69c478daf1aeaf84941c561d381b26747b614101 (commit)<br>
via 2a41cf5d682aa4ed8b75132bb224933d0b14a845 (commit)<br>
via 7858afacec2354892dcfbe2d587d2f08bbd79ca3 (commit)<br>
via 11cbdf441d57f8151d512677d4b9f12b1cca4a6f (commit)<br>
via e60a8164c12d565f70071ff6b32b823dd495df9e (commit)<br>
via c3752c0b5926c3d5d3361c8127708da83e585928 (commit)<br>
via 3114c9824220921bab15cc283907debccde17fa0 (commit)<br>
via f6a8db2d947018c09389fd6747ae23072c3a8666 (commit)<br>
via f8a59e315293366fd58d632484245a78a3feaa36 (commit)<br>
via f62b344996937459ae5f31b0358cb440ddde421f (commit)<br>
via 18c266fc4cb73c911d2d0576628873c0ceada6ca (commit)<br>
via 9935be1881cf7cc7292629fcd64768336a869c8d (commit)<br>
via ae9242c86a1a566d98a2cff4df680f1fcd0ecc48 (commit)<br>
via c95cf86f39ca327688781718ddc371b00f232c03 (commit)<br>
via 8dff643f44c4c179a3e2657f5641e59739dc4b2c (commit)<br>
via ca0a33644ae47b802ce2ae7a96af70806e7266fe (commit)<br>
via d7436fc1dfe0323fb5e6905457f342da5ed8ca97 (commit)<br>
via 24b292c917fe325e51e2ccd7dc3e4e05fee2d1e5 (commit)<br>
via aeb958be832011009226b39e04d61cfb2a6e7da3 (commit)<br>
via 9b106331e79de6dc328b5545b4b188b527224dee (commit)<br>
via 7822022c4c72cee06905b540b89b653491d6f6b2 (commit)<br>
via aa8d013ec5b09cd1cd904173d6234ef126eb2126 (commit)<br>
via e54d6cce171d9b18e2ec553e4c30c17d4462332e (commit)<br>
via 5bf2c5ce9ba2539efbf81928ef6ccb96d959bcf8 (commit)<br>
via eeb6cb8305a213c29ee20e4a0c4d4c1418c88dd8 (commit)<br>
via ad563aea971ac9317acac180e42cd271698208fd (commit)<br>
via 434445ee1e9f22b55ce8994d78794ae33a6d8247 (commit)<br>
via 64c3c9020bb797cc902f3915c71971a4b1bd8502 (commit)<br>
via d76db55b6c54c52fee905ecbb8773cd8ae1eb499 (commit)<br>
via f282a2f4b8f1d44702eb746c8554408d802f402d (commit)<br>
via efa99b32264acd577e36d9367f035d6cbde606a4 (commit)<br>
via e03243397debaf3a72b227930c334935ff9f8cae (commit)<br>
via 75d0acd48f46e63b3d6e835ffbf36a771ecd2a4a (commit)<br>
via e2611fd5e14681470a4f2b48723584bba5b461ea (commit)<br>
via f0e592fc66bbfd4c8cf73f91536f326ccf483f22 (commit)<br>
via 6f75ba0bdab3ab1f29773740611bb0ce6f9ab99c (commit)<br>
via b1dc05fde974bc50f70c58857fc630c829aa2a18 (commit)<br>
via 7060353a087b66f37c0134eb485baf777e949973 (commit)<br>
via b88d7bb629849748346c1faf394d30c4c740ddf9 (commit)<br>
via b90270a5a3767933cab04cb82b530bf76fc0bf10 (commit)<br>
via 708f4a80ea464edd3805f2024d65a2e795265080 (commit)<br>
via 037ba55cbee97bb9e1be95423c358ac1a7b33a2a (commit)<br>
via 17ed13a3bca0a809273daf535f38ee166b110188 (commit)<br>
via f6144ed443995a7d5bdbae217c6ba3ef3e341d16 (commit)<br>
via 5a339bbb87e06cb4687056e07985eeb6bafef002 (commit)<br>
via abbe2ead95fdee6a0d59da35ce3542439ec2abcc (commit)<br>
via 6506255cfdab516114e35266c9d70b7ed3cd2bec (commit)<br>
via 9737a2060ca725bb6622736f2bf2ebb6656a8d7f (commit)<br>
via 225b52ef15d77d017c47b026313f3fabcf423a28 (commit)<br>
via 921ceb26bdb8ae6425f87789005e337f98aa4305 (commit)<br>
via 5b12984bf9d1d952a402932d3d87aaef2d1ca6f2 (commit)<br>
via 0d2787be930588ac04854dcc2dd0ba85a2cbec48 (commit)<br>
via 1f530df63238a22a9e74c13df27cb027b8c9cfe6 (commit)<br>
via 87540ad7d8cc3716d3e2204ffbdc7a81d5bf7d90 (commit)<br>
via 16216c83297543692b8dede52c9dd8a998758e9c (commit)<br>
via 9c9b984556a3ad14847cb603897ab1689a0db721 (commit)<br>
via 733a0e89ac30930a951f38620ab28a014e621a79 (commit)<br>
via 95a717e9b907de94bf29c91abca13012ec47d088 (commit)<br>
via caf32f58cd5b24cdd127dce6823e10a8a5323112 (commit)<br>
via d7415aea482652cd4b035d18c4bcf0edfc409d5f (commit)<br>
via 697fa6390c5d52eaef36a15c31b68d093a0d0941 (commit)<br>
via 59b3bc264cbf0996cd7b446afd219ab1ff0fe53c (commit)<br>
via cbd4c46406b0a34291a9962c834b7de871ce30ce (commit)<br>
via 767d4c6743155a6835a596fc6b1baf56e14ad430 (commit)<br>
via 472c97e97684494ecfd0541fa779c301a1855447 (commit)<br>
via 8eb5694bafff6be81a35542c584e82817a1e0852 (commit)<br>
via 64fca455ae305704929a03c27f3ed5866abe8e15 (commit)<br>
via 4a7c7daa260467f3c9b234495bf3283fe31c01cb (commit)<br>
via c278cef2ecd6fc42132d02f982e113414f5f9ce4 (commit)<br>
via 89eaa05ed1a1ddd5d2552c323b5228def627d731 (commit)<br>
via e0de36d791e82d9916cad4ac41562077cf9789c3 (commit)<br>
via 38b280ca2cf8895fc1d03c0034ef5bbce847cf0f (commit)<br>
via 85a9d078274587b5ef7bf97f7e26c9f121947c03 (commit)<br>
via fe88b9d2f39375b043970788cfc16bd0bfd42322 (commit)<br>
via 427b3a21ef99f2fb99ae35ea02b7c49b1a9e117c (commit)<br>
via 525421c923d798cdea9e5691bcee1e5e5530491d (commit)<br>
via 5ea6163a62c386f403b6d01df2780ff9308bf08f (commit)<br>
via 06200a37fcdb627fce265e263947862b70bacdbf (commit)<br>
via 69d66f1e729aadfcf2f47aaedaf738a888e4646d (commit)<br>
via 0a8722fd78ca1f7eae1ebdd831fabf3289e7e67e (commit)<br>
via cbe3a58b138e7596d53bb93e5a17d084ba1350dc (commit)<br>
via be2e4e54da3c8054525321422f7f290d45b32a6c (commit)<br>
via 7a44c8b447c4cac2b71bf842a61440bae9caf918 (commit)<br>
via 72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7 (commit)<br>
via 7a0b0b5672a33c190eefb4b2d3e3693241c130f2 (commit)<br>
via e13eeea2db3743bf8d3fe2833e069a80e2c4102c (commit)<br>
via 39a5d5feeeebbffa7187ef318fb6a11fdb063fbe (commit)<br>
via fc763ab77d48ecd191a402a11f778c46e114e79b (commit)<br>
via c8f7c5630e8312cab7e17539381f05dffe9193fa (commit)<br>
via d5088cf2d3c077444aa28194340db2f23b94035a (commit)<br>
via 1881820ae4ff9004beef1bf7f04553580840441d (commit)<br>
via 74a2b5864f2ece87bf522d1c1cbd590dc24c0c53 (commit)<br>
via c8dee0f165d19271bb0a83069dcbb65fbc02e73f (commit)<br>
via e767dd55995d20151987ca38eb00c8d43465ca41 (commit)<br>
via 0d0527a929bf9f35b4d99c100dfc76449d67a906 (commit)<br>
via 09ad624693cb0ef41cf246e2876b5f356783b34d (commit)<br>
via 8f2c3a702aae3545b631a2b4c6db99f87528553a (commit)<br>
via b486346aa2fad7de06c491755b9b50c58c27a017 (commit)<br>
from 4aa7ac35696b87867b1e85410a80527696ff4d64 (commit)<br>
<br>
Those revisions listed above that are new to this repository have<br>
not appeared on any other notification email; so we list those<br>
revisions in full, below.<br>
<br>
- Log -----------------------------------------------------------------<br>
commit d984bb4e751121f1a7c0029ee7df4acf62f2eea4<br>
Author: Daniel Lezcano <daniel.lezcano@free.fr><br>
Date: Thu Dec 13 21:51:03 2012 +0100<br>
<br>
Version 0.9.0.alpha1<br>
<br>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com><br>
<br>
commit 2e3ae157d528212a3bd5d95e8ffa8fa1d67ee9e5<br>
Merge: 4aa7ac3 222fea5<br>
Author: Daniel Lezcano <daniel.lezcano@free.fr><br>
Date: Thu Dec 13 21:47:55 2012 +0100<br>
<br>
Merge git://github.com/lxc/lxc<br>
<br>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com><br>
<br>
commit 222fea5a10544018f26d60d73132069fb0fa8797<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Tue Dec 11 12:39:16 2012 -0500<br>
<br>
Don't attempt to symlink kmsg without rootfs->path<br>
<br>
For example doing "lxc-execute -n tmpct /bin/bash" will call setup_kmsg(), but<br>
in this case rootfs->mount/dev directory doesn't even exist so the call to<br>
symlink fails with ENOENT. Commit f62b3449 made this failure not fatal, but<br>
we should not even try it when we know it will fail. See similar code in<br>
setup_tty(), setup_console(), etc.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 769872f9f2c994d8bfd6de906562df64bcd92600<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Dec 11 11:40:02 2012 -0600<br>
<br>
support new libseccomp api<br>
<br>
Detect the new api by existence in seccomp.h of the scmp_filter_ctx<br>
type in configure.ac.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit a02264fb1ef8abab2f7aff2d347638e6e831156e<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Dec 11 11:39:26 2012 -0600<br>
<br>
README: fix typo in example script<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit ff918b1832307204b106ca7bcaea21ff57370d7a<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Dec 11 11:08:09 2012 -0600<br>
<br>
seccomp: free conf->seccomp (filename char *)<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 7323456ec3efe23bb7a84164d3e71d4293998f2c<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Thu Dec 6 13:29:51 2012 -0500<br>
<br>
assume LXCPATH took on default localstatedir based value in configure<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Michael H. Warfield <mhw@WittsEnd.com><br>
<br>
commit d8521cc3754a740a547b12aa81990d117b5d99ee<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Sun Dec 9 23:36:10 2012 -0500<br>
<br>
python: Update add_device_node to use the new API<br>
<br>
Update add_device_node to use the new set_cgroup_item call instead<br>
of having to figure out the cgroup paths and update the entries manually.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit f2924f7898d6bfbdb30f8f02c87b86880afd79e8<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Dec 7 15:47:12 2012 -0500<br>
<br>
gitignore: Update for python files<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit f4d3a9fddbacdd5279f042cc352425a0c01da2b6<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Dec 7 15:47:11 2012 -0500<br>
<br>
python: Add binding for {get|set}_cgroup_item<br>
<br>
Updates the binding for the two new functions.<br>
<br>
This also fixes some problems with the argument checking of<br>
get_config_item that'd otherwise lead to a segfault.<br>
<br>
The python binding for set_cgroup_item and get_cgroup_item are pretty<br>
raw as lxc has little control over the cgroup entries.<br>
That means that we don't try to interpret lists as we do for the config<br>
entries.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 703c562d2ee8572097135003964c7ca7931567c9<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Dec 7 15:47:10 2012 -0500<br>
<br>
python: get_keys() doesn't require a path<br>
<br>
The python binding was forcing the user to pass a base path to<br>
get_keys() even though the C binding doesn't require it.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit f3c7020ad851481d3c95c6deb384326c6cc1a29f<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Fri Dec 7 14:16:54 2012 -0600<br>
<br>
dont save loglevel if it is unset<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit d4f6fa926d92803d8b8217468be483ac2f7e270e<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Dec 7 12:24:23 2012 -0500<br>
<br>
python3-lxc: Fix build prefix/destdir<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 794dd12099da53adec33e8291f0f470629f8b8f6<br>
Author: Serge Hallyn <serge.hallyn@canonical.com><br>
Date: Thu Dec 6 18:41:15 2012 -0600<br>
<br>
api: add set_cgroup_item and get_cgroup_item (to c api)<br>
<br>
set_cgroup_item takes a pointer to a running container, a cgroup subsystem<br>
name, and a char *value and it mimicks<br>
'lxc-cgroup -n containername subsys value'<br>
get_cgroup_item takes a pointer to a running container, a a cgroup<br>
subsystem name, a destination value * and the length of the value being<br>
sent in, and returns the length of what was read from the cgroup file.<br>
If a 0 len is passed in, then the length of the file is returned. So<br>
you can do<br>
<br>
len = c->get_cgroup_item(c, "devices.list", NULL, 0);<br>
v = malloc(len+1);<br>
ret = c->get_cgroup_item(c, "devices.list", v, len);<br>
<br>
to read the whole file.<br>
<br>
This patch also disables the lxc-init part of the startone test, which<br>
was failing because lxc-init has been moved due to multiarch issues.<br>
The test is salvagable, but saving it was beyond this effort.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit ab4a1501761241e1aa97c3eee6742040dc81a049<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Dec 7 10:41:10 2012 -0500<br>
<br>
lxc-create: Allow for empty or unset template name<br>
<br>
This restores an old behaviour where lxc-create can be called without<br>
a template. In such case, only a minimal configuration is built and no<br>
rootfs is created. However the various backingstore code is still used.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 1c6085cdd97cf947237e361245b35c6cdab90357<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Thu Dec 6 09:58:21 2012 -0500<br>
<br>
lxc.spec: add openssl and rsync as Required since both are used in lxc-clone<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 2495cc911b6600521fd2dc735edba15f6fbb9081<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 18:51:10 2012 -0500<br>
<br>
python: Remove hardcoded LXCPATH<br>
<br>
Switch the python scripts to using @LXCPATH@.<br>
<br>
According to grep, this was the last occurence of a /var/*/lxc<br>
path in the code.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit fe253caa8b98854445aaf6ee253545ee1f13beb1<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 18:51:09 2012 -0500<br>
<br>
templates: Consistent use of locking<br>
<br>
Move to per-template lock (except for oracle that's per-container).<br>
Also ensure that the path used for the lock is relative to LOCALSTATEDIR.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 75350ec8c77acad383eea8e36b2dc3faeea34460<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 18:51:08 2012 -0500<br>
<br>
lxc-archlinux: Don't hardcode /var/lib/lxc in help<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 7c382572263726e0d90b9550bc8cf4c2ac014efa<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 18:51:07 2012 -0500<br>
<br>
lxc-ubuntu: Don't hardcode path to cache<br>
<br>
Use LOCALSTATEDIR to generate the path to the cache.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 14d9c0f09d1a55d124ef210a4b4e205c9fe7596c<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 16:47:19 2012 -0500<br>
<br>
Update for consistent indent<br>
<br>
This commit updates all scripts using mixed indent to a consistent<br>
4 spaces indent.<br>
<br>
In the past quite a few of those scripts used tabs to instead of 8 spaces or<br>
instead of 4 spaces, sometimes mixing those in the same line and sometimes<br>
changing the tab width within the same file.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit eba7df9ee0a1963984ef212e7ddfc0e0835af288<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 16:47:18 2012 -0500<br>
<br>
templates: Make generated config consistent<br>
<br>
This updates all the templates and the configuration files to consistently<br>
use "key = value" everywhere.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 836676caba579f934523aae1c09f2b426f0e45f9<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 16:47:17 2012 -0500<br>
<br>
Minor documentation updates<br>
<br>
- Update COPYING to the current copy of the LPGL-2.1 license from<br>
common-licences (only difference is some indentation).<br>
- Remove mixed tabs/spaces in CONTRIBUTING<br>
- Make INSTALL fit on 79 cols.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit e1483a0275273911b08f8183e31c0fd0565cd11d<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 16:47:16 2012 -0500<br>
<br>
Update README<br>
<br>
This adds a section about the staging branch to the README and updates<br>
the list of supported architectures.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 483d21ff46cda0dc4f53672c02e48404535d56df<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 17:07:01 2012 -0500<br>
<br>
oracle template: fixes when using fedora host<br>
<br>
Let oracle template work when host is fedora or oracle and the lsb_release<br>
command is not present. Verify the arch given is valid. Don't add lxc.network<br>
section again if already present.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit f1a3a3ab8feb7374aed232f2d635edc51d2be792<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Wed Dec 5 15:05:02 2012 -0500<br>
<br>
make install should create /var/cache/lxc directory<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit f8ddeaa5be7c883a3d14f977879f6dacaf7a6236<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Dec 5 13:33:03 2012 -0500<br>
<br>
lxc-archlinux.in: Apply same LXCPATH/LOCALSTATEDIR<br>
<br>
lxc-archlinux was apparently left out of the last change, apply<br>
the same modification as the other templates.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit e29bf450cafa2ce2564aeb0b64d2014c17228407<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Wed Dec 5 12:33:16 2012 -0500<br>
<br>
Use LXCPATH and LOCALSTATEDIR instead of hardcoded /var<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit f99c7aa5de9aa1aa7d624380235cbd295a4764b8<br>
Author: Serge Hallyn <serge.hallyn@canonical.com><br>
Date: Wed Dec 5 10:38:07 2012 -0600<br>
<br>
lxc-create: refuse to use a custom rootfs (--dir) which already exists.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 0749e740608de0621fbbd9bd89946f5fbecb8d72<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Dec 4 17:42:46 2012 -0500<br>
<br>
lxc-ls: Update code to allow non-root listing<br>
<br>
Re-arrange the code so that we only grab the container object when doing<br>
something more than building a simple list of existing containers.<br>
<br>
This means that now the following calls can run unprivileged:<br>
- lxc-ls<br>
- lxc-ls -1<br>
<br>
Everything else will still require root privileges.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 20cf2e976bf31494e64f05f3d7a2cd5130971502<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Dec 4 17:30:13 2012 -0500<br>
<br>
python: Update to the device related functions<br>
<br>
This commit does the following changes to the python API:<br>
- Rename the add_device API call to add_device_node<br>
- Adds an extra check that the container is running to add_device_node<br>
- Introduces a new add_device_net function<br>
<br>
And the following changes to the lxc-device tool:<br>
- Change parser setup to better cope with variable number of arguments<br>
- Add support for network devices (currently auto-detected)<br>
- Support for different names on the host and in the container<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit b1eafd4aeb778fbf86751b2b032f8fb1834e9099<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Dec 4 16:17:09 2012 -0500<br>
<br>
lxc-device: Show an error message when non-root<br>
<br>
Instead of returning a python stacktrace, check what the current euid is<br>
and show an argparse error message similar to that used in lxc-start-ephemeral.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit daf04e4ce912839383d649109a6aac66c2b48709<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Dec 4 16:17:08 2012 -0500<br>
<br>
lxc-ls: Show a simple error message when non-root<br>
<br>
Instead of returning a python stacktrace, check what the current euid is<br>
and show an argparse error message similar to that used in lxc-start-ephemeral.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit c0b5f522feab43871f0e116eadd9ed992d5fb194<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Dec 4 16:17:07 2012 -0500<br>
<br>
lxc-start-ephemeral: Use argparse errors<br>
<br>
Use argparse's error function instead of our own print + exit.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 7b35f3d60a7d007e39b44461181e118bd3942da7<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Dec 4 12:00:26 2012 -0600<br>
<br>
rename physical nics at shutdown<br>
<br>
When a physical nic is being set up, store its ifindex and original name<br>
in struct lxc_conf. At reboot, reset the original name.<br>
We can't just go over the original network list in lxc_conf at shutdown<br>
because that may be tweaked in the meantime through the C api. The<br>
saved_nics list is only setup during lxc_spawn(), and restored and<br>
freed after lxc_start.<br>
<br>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1086244<br>
<br>
Changelog: remove non-effect change in execute.c<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 4245ba50074f33c4bfa8e8b133598767841e712b<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Thu Nov 29 16:24:47 2012 -0500<br>
<br>
make install should create $LXCPATH directory<br>
<br>
The $LXCPATH (default /var/lib/lxc) directory was not being created by<br>
make install, so unless it gets created by some other means<br>
(packaging tools), commands such as lxc-create will fail.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 6a85cf91247b7dd9c3faeddceca8dacb96d02cd6<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Dec 4 12:12:36 2012 -0500<br>
<br>
Install legacy scripts when built without python.<br>
<br>
Re-introduce the old lxc-ls script and manpage under a new legacy<br>
sub-directory.<br>
<br>
Those will be installed in place of their python equivalent when LXC<br>
is built without --enable-python.<br>
<br>
Any other script ported to python should be added to those lists.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 4e7186c53554cdbf4b4b85568daf84740c120505<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Nov 21 17:38:27 2012 -0500<br>
<br>
Rewrite lxc-ls in python<br>
<br>
This rewrite is mostly compatible with the shell version.<br>
--active and -1 still work and behave as they used to.<br>
<br>
This adds --running, --stopped and --frozen as state filters.<br>
<br>
A new "fancy" view is also implemented (can be used with --fancy) and<br>
will show containers in a column-based interface with the following fields:<br>
- name<br>
- state<br>
- ipv4<br>
- ipv6<br>
- pid of init<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 4a85ce2ad0d0b24680712c60a6576713d209b7ad<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Mon Dec 3 12:53:46 2012 -0600<br>
<br>
lxc_conf logfile and loglevel support<br>
<br>
Add 'lxc.logfile' and 'lxc.loglevel' config items. Values provided on<br>
the command line override the config items.<br>
<br>
Have lxccontainer not set a default loglevel and logfile.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 44d397891e691ab994a69766cc72e57265b62da1<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Mon Dec 3 09:53:10 2012 -0600<br>
<br>
templates: use hardlink detection in rsync<br>
<br>
I'm not sure whether we want this: is -H ubiquitous?<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: Michael H. Warfield <mhw@WittsEnd.com><br>
Acked-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
commit 2130af2665f37eafe80291fb9f67b8a48532df8e<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Mon Dec 3 09:47:37 2012 -0600<br>
<br>
lxc-clone: use hardlink detection in rsync<br>
<br>
Otherwise busybox clones have been reported to explode from<br>
2M to 440M.<br>
<br>
Reported-by: Rene K. Mueller <spiritdude@gmail.com><br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: Michael H. Warfield <mhw@WittsEnd.com><br>
Acked-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
commit 6902a6c6642a85c0510e84e96a06e21aee152226<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Fri Nov 30 11:49:25 2012 -0500<br>
<br>
Create busybox commands as symlinks instead of hardlinks<br>
<br>
I was getting a "Too many links" error when creating a busybox container on<br>
a btrfs file system. This change has the template create the links as<br>
symlinks instead. It also generates the list of commands to be symlinked from<br>
busybox itself instead of a hardcoded list in the template.<br>
<br>
Also set the root password to root, to match what other templates do.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 1d4f064658987210ee46124c39429a80edc7a32d<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Dec 3 09:29:27 2012 -0500<br>
<br>
lxc-create: Script cleanup<br>
<br>
- Removes the mixed tabs/spaces, replacing by standard 4 spaces indent.<br>
- Fix a bunch of bashisms.<br>
- Use shell syntax for and/or in if statements instead of the "test" syntax.<br>
- Improve block spacing a bit.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit fa0e6e1bf42c92d1e35201322121bcb5e2d30199<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Nov 30 16:55:54 2012 -0500<br>
<br>
lxc-create: Store template information in config<br>
<br>
Change lxc-create to add the name of the template, checksum and any parameters<br>
to the container's configuration.<br>
This makes it easier to debug and figure out exactly how a container was built.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 61435768cdd6703e8f2f98bfd134afb4c51d0523<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Thu Nov 29 20:05:37 2012 -0600<br>
<br>
check and warn of return value from fchdir<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit cc423c67391aafe0be46d11db8e63a602eea0d25<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Thu Nov 29 13:27:37 2012 -0500<br>
<br>
Include lxc-ubuntu when doing make dist<br>
<br>
Removing templates/lxc-ubuntu from configure.ac makes it so that it is<br>
not included in the tarball that make dist builds (and therefore also<br>
breaks the rpm build).<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 91c3830e225e10f7c2e638965be0f3cf51c8d3f3<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Thu Nov 29 10:46:46 2012 -0600<br>
<br>
Description: run MAKEDEV console when doing lxc.autodev<br>
<br>
mounted-dev.conf won't be running that in container's userspace as it<br>
previously would have, so make sure that all the devices it would have<br>
created (other than ones which lxc later finagles) get created.<br>
To achieve this, we have to first mount /dev, then run MAKEDEV, then<br>
run setup_autodev to populate the rest of /dev.<br>
<br>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1075717<br>
<br>
Changelog:<br>
v2: Use INFO rather than ERROR when makedev fails, since we won't stop the container boot.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 5f29734f7d21907a9c463cf354d1bef5de9f08b5<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Wed Nov 28 16:51:37 2012 -0500<br>
<br>
Fix build with --enable-tests on Fedora<br>
<br>
When using --enable-tests on Fedora, the linker complains with:<br>
"undefined reference to symbol sem_getvalue", which nm shows to be in<br>
libpthread not librt. Build tested on Fedora, Oracle Linux, and Ubuntu.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 89573feb5b507a61738523ecfe1c8fbcb57726b8<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Nov 29 10:08:22 2012 -0500<br>
<br>
lxc-ubuntu: Fix wrong variable name<br>
<br>
$LANGPACK_LIST was renamed to $langpacks but not all the code was updated.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 1e1f8eeb147ca46fa81857a8a570feff2c818974<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Nov 28 18:29:58 2012 -0500<br>
<br>
lxc-ubuntu: Fix mixed indent<br>
<br>
Replace all remaining tabs by 8 spaces, to properly indent by 4 spaces.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 8e100cef8baf6b92ce4ced8b734e56e2e0aa691d<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Nov 28 18:29:57 2012 -0500<br>
<br>
lxc-ubuntu: Rename from lxc-ubuntu.in<br>
<br>
lxc-ubuntu no longer uses any build time variables, therefore it can<br>
now be simply copied to the target without any autoconf magic.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit fade719ed906ad7aa73204ca84747047bae3d7bf<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Nov 28 18:29:56 2012 -0500<br>
<br>
lxc-ubuntu: Guess a list of langpacks to install<br>
<br>
In addition to creating the current locale in the container, also<br>
try to scan the host and extra the list of langpacks installed there,<br>
then pass that list to debootstrap as additional packages to install.<br>
<br>
On distros that don't have dpkg, only language-pack-en will be installed.<br>
The code will always ensure that language-pack-en is ALWAYS installed in the<br>
target, similar to what Ubuntu does with its various media.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 18f823c1ca9f750ebad23f45026fcdeddc57a389<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Nov 28 18:29:55 2012 -0500<br>
<br>
lxc-ubuntu: Always create the needed locales<br>
<br>
Move some old code from the trim() function into the main configure_ubuntu<br>
function so that we always create a locale in the container.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit e62fa3f9cea8c97fbfa3a3c8e6acc00c420c8363<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Thu Nov 29 10:13:10 2012 -0500<br>
<br>
Fix busybox template to not have extra aa_profile hunk<br>
<br>
Both 69d66f1e and f02ce27d added the aa_profile = unconfined hunk, but only<br>
the first was needed, maybe a merge error? The second one causes the<br>
template to get an error on the EOF line. This essentially reverts<br>
f02ce27d.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit bf555f03840e1808406b276e0bc240d4fa67859e<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Wed Nov 28 09:57:59 2012 -0600<br>
<br>
revert inadvertent un-doing of lxc-clone fix<br>
<br>
commit 8f2c3a702aae3545b631a2b4c6db99f87528553a reverted a fix<br>
for bad handling by lxc-clone of 'lxc.mount[ \t]' lines.<br>
Fix.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 000559b5de36e45b0cc54349a9e62dd77766882b<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Tue Nov 27 11:07:12 2012 -0500<br>
<br>
Oracle template: make container also boot under libvirt<br>
<br>
This allows containers created with lxc-create to also boot under<br>
libvirt/Virtual Machine Monitor<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 12a50cc6ab5c8a4aa0bcb7ddcd7095265f7bb62b<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Nov 26 15:28:14 2012 -0500<br>
<br>
Make config api items const<br>
<br>
This makes it easier to write a binding, and presents a cleaner API. Use<br>
strdupa in a few places to get mutable strings for tokenizing / parsing.<br>
Also change the argv type in lxcapi_start and lxcapi_create to match<br>
that of execv(3).<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 12ad0f90c17072c8d6024c0ab6eda3f13c94aad0<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Mon Nov 26 22:39:05 2012 +0100<br>
<br>
lxc-setuid: use POSIX shell instead of bash<br>
<br>
Avoid getop --longoptions.<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit f910f092e5070b9bec3fdbde1cb778c5eefe0639<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Mon Nov 26 22:37:33 2012 +0100<br>
<br>
lxc-setcap: use POSIX shell instead of bash<br>
<br>
Avoid getopt --longoptions<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit b45a7402bf5e6a0c4d03c5a428670bad7c1b4c8e<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Nov 26 15:57:53 2012 -0500<br>
<br>
Use autoconf LXCPATH instead of hardcoded LXCDIR<br>
<br>
LXCDIR is only used in lxc_container_new, whereas LXCPATH is used throughout<br>
the rest of lxc, and even in the same file as lxc_container_new (for example<br>
create_container_dir()).<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 7ec3fa7139c3be9381b9de1a2deeb6484abd550b<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Tue Nov 27 08:27:17 2012 +0100<br>
<br>
lxc-checkconfig: use POSIX shell instead of bash<br>
<br>
- replace 'echo -e' with printf<br>
- replace 'if [[ ... ]]' with 'if [ ... ]'<br>
- add \ at after && and || when those are at end of line<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 89d35588040a94a3a92a235da163462b1364b4b8<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Tue Nov 27 08:13:31 2012 +0100<br>
<br>
lxc-version: use POSIX shell instead of bash<br>
<br>
There is no reason to depend on bash for a single echo.<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 6b1a07ba086d16cfa822caadf95eab62b70889cd<br>
Author: Serge Hallyn <serge.hallyn@canonical.com><br>
Date: Mon Nov 26 14:08:36 2012 -0600<br>
<br>
fix lxc-ubuntu-cloud option parsing bugs<br>
<br>
The -u shortopt matching --userdata was not specified, and when -L<br>
is found shift should have been by 1 not 2 since there is no optarg.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit b917ef75223480f0fa86d47eed5951787b86a99f<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Mon Nov 26 20:04:32 2012 +0100<br>
<br>
lxc-info: add option -t, --state-is=STATE to test for a given test<br>
<br>
Add an option to test for a give state. This is useful for scripts.<br>
It lets us you do thing like:<br>
<br>
if lxc-info --name myname --state-is RUNNING; then<br>
...<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 83cab6e068b64f733dbdd156319b7716b054853a<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Nov 26 12:18:13 2012 -0500<br>
<br>
Ensure argv passed by createl to create is NULL terminated<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit d95db067d28dd0480c2bd71f85668fa8d37e9064<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Nov 26 12:18:06 2012 -0500<br>
<br>
Free allocated configuration memory<br>
<br>
Most of these were found with valgrind by repeatedly doing lxc_container_new<br>
followed by lxc_container_put. Also free memory when config items are<br>
re-parsed, as happens when lxcapi_set_config_item() is called. Refactored<br>
path type config items to use a common underlying routine.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 9ebb03ad4abdd5642e330d73cf339bcbb72c29c1<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Nov 26 12:17:58 2012 -0500<br>
<br>
Fix use of list item memory after free<br>
<br>
Valgrind showed use of ->next field after item has been free()ed.<br>
Introduce a lxc_list_for_each_safe() which allows traversal of a list<br>
when the body of the loop may remove the currently iterated item.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 2312f31b07690c18ce1b910803ef3f6f7e588f05<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Nov 26 12:17:51 2012 -0500<br>
<br>
Fix fd leak in lxc log<br>
<br>
lxc_log_init will leak an fd when it is called by a long running<br>
program that may call lxc_container_new multiple times. Fix by<br>
only opening the log if it is not already open.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 181a9be7e40766d863bb7d52b38a47364d24db80<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Nov 22 18:02:13 2012 -0500<br>
<br>
gitignore: Ignore python cache<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 2cdb945b1375d4d2fd7f1e01df6d39a54b10d82c<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Nov 22 18:01:40 2012 -0500<br>
<br>
python: Use builtin len() function for network interfaces<br>
<br>
Use our own len() function for network interfaces as doing<br>
len(container.get_config_item("lxc.network")) will fail when the<br>
list is empty.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit bde1853954e7e0a33fec872391c757933c063ae9<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Nov 22 15:25:45 2012 -0500<br>
<br>
python: PEP8 compatibility<br>
<br>
The new version of the pep8 command is detecting more indentation<br>
mistakes than it used to, this fixes them.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit f79d43bbe70a01454049b77d6f15f6369744959e<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 26 12:08:13 2012 -0500<br>
<br>
Remove all trailing whitespaces.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit c93c7b1a0b0d4548780b9c22fb9ab907783caad1<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Wed Nov 14 12:03:56 2012 -0500<br>
<br>
Fix checkconfig to handle kernel memory cgroup name change<br>
<br>
The kernel config option for the memory cgroup was changed in 3.6<br>
from CONFIG_CGROUP_MEM_RES_CTLR to CONFIG_MEMCG with commit c255a458.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit ad493d03fed380ac151dacb53ddfd01a23aeacee<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 26 11:45:28 2012 -0500<br>
<br>
lxc.conf.sgml.in: Fix typo<br>
<br>
Fix a typo in the previous lxc.conf.sgml.in change.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit c6883f383e587725552f7c71e96ebe1c34ae7c56<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Thu Nov 1 22:27:03 2012 +0100<br>
<br>
Add lxc.autodev<br>
<br>
Add a container config option to mount and populate /dev in a container.<br>
<br>
We might want to add options to specify a max size for /dev other than<br>
the default 100k, and to specify other devices to create. And maybe<br>
someone can think of a better name than autodev.<br>
<br>
Changelog: Don't error out if we couldn't mknod a /dev/ttyN.<br>
Changelog: Describe the option in lxc.conf manpage.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 69c478daf1aeaf84941c561d381b26747b614101<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Nov 22 18:01:08 2012 -0500<br>
<br>
python: Add new lxc-device tool<br>
<br>
Add a new lxc-device tool which uses the new add_device() function of<br>
the python API and lets you add a new device node to a running container.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 2a41cf5d682aa4ed8b75132bb224933d0b14a845<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Nov 22 17:35:44 2012 -0500<br>
<br>
python: Add add_device() function<br>
<br>
This introduces a new add_devices() call to the python API.<br>
<br>
Parameters:<br>
- path => Mandatory, path to a character or block device on the host<br>
- destpath => Optional, alternative path inside the container<br>
<br>
The function will allow the node in the container's devices cgroup and<br>
then create the entry in the container.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 7858afacec2354892dcfbe2d587d2f08bbd79ca3<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Mon Nov 26 12:00:44 2012 +0100<br>
<br>
lxc-create: do not use 'local'<br>
<br>
Apparently 'local' is not POSIX. Don't use it.<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 11cbdf441d57f8151d512677d4b9f12b1cca4a6f<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Thu Nov 22 14:16:23 2012 +0100<br>
<br>
lxc-create: fix passing over first argument to template script<br>
<br>
The e60a8164c12d565f70071ff6b32b823dd495df9e introduced a bug that caused<br>
first argument passed over to the template script get lost.<br>
<br>
This patch fixes it.<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit e60a8164c12d565f70071ff6b32b823dd495df9e<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Fri Nov 16 17:01:55 2012 +0100<br>
<br>
lxc-create: use posix shell instead of bash<br>
<br>
- use '[ -x /path/prog ]' instead of 'type /path/prog'<br>
- avoid getopt --longoptions<br>
- add \ at after && and || when those are at end of line<br>
- make sure condition expands to empty string if variable is empty<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit c3752c0b5926c3d5d3361c8127708da83e585928<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Nov 15 10:51:09 2012 -0500<br>
<br>
Use clearer error message on failure to create pidfile<br>
<br>
As suggested by Serge Hallyn on lxc-devel.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 3114c9824220921bab15cc283907debccde17fa0<br>
Author: Natanael Copa <ncopa@alpinelinux.org><br>
Date: Thu Nov 15 14:52:16 2012 +0100<br>
<br>
lxc-start: add option -p, --pidfile=FILE<br>
<br>
Add option to create a pidfile for lxc-start. This is helpful for<br>
init scripts and process monitors when running as daemon.<br>
<br>
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit f6a8db2d947018c09389fd6747ae23072c3a8666<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Wed Nov 14 10:44:35 2012 -0500<br>
<br>
Fix package name needed for building docs with RPM<br>
<br>
Tested on Oracle Linux 6 and Fedora 17<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit f8a59e315293366fd58d632484245a78a3feaa36<br>
Author: Frederic Crozat <fcrozat@suse.com><br>
Date: Wed Nov 14 16:11:08 2012 +0100<br>
<br>
ensure btrfs subvolume is removed when container creating fails<br>
<br>
Signed-off-by: Frederic Crozat <fcrozat@suse.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit f62b344996937459ae5f31b0358cb440ddde421f<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Nov 13 21:35:51 2012 -0600<br>
<br>
dont fail on failure to link kmsg<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 18c266fc4cb73c911d2d0576628873c0ceada6ca<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Nov 13 19:36:05 2012 -0500<br>
<br>
Add the test binaries to .gitignore<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 9935be1881cf7cc7292629fcd64768336a869c8d<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Nov 13 19:35:17 2012 -0500<br>
<br>
Check return value of all system calls in startone<br>
<br>
One of the system() calls in src/tests/startone.c wasn't checked.<br>
This was causing a build failure now that -Wall -Werror are set by default.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit ae9242c86a1a566d98a2cff4df680f1fcd0ecc48<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Nov 13 17:54:01 2012 -0600<br>
<br>
switch use of #define with static char*<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit c95cf86f39ca327688781718ddc371b00f232c03<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Nov 13 17:50:35 2012 -0600<br>
<br>
Revert "Fix check against LXCROOTFSMOUNT to use strcmp"<br>
<br>
This reverts commit 5bf2c5ce9ba2539efbf81928ef6ccb96d959bcf8.<br>
<br>
commit 8dff643f44c4c179a3e2657f5641e59739dc4b2c<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Nov 13 17:49:13 2012 -0600<br>
<br>
Initialize curtime to silence spurious compiler warning<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit ca0a33644ae47b802ce2ae7a96af70806e7266fe<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Nov 13 17:19:13 2012 -0600<br>
<br>
lxc-ssh: fix message about ssh key insertion<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit d7436fc1dfe0323fb5e6905457f342da5ed8ca97<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Nov 13 17:17:25 2012 -0600<br>
<br>
Fix reverse check: error out only if mkdir(cgroup/lxc) fails NOT due to -EEXIST<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 24b292c917fe325e51e2ccd7dc3e4e05fee2d1e5<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 12 16:41:14 2012 -0500<br>
<br>
lxc-create: Support passing a full path to -t<br>
<br>
In some cases it may be useful to pass a full path to an executable<br>
template script directly to lxc-create.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit aeb958be832011009226b39e04d61cfb2a6e7da3<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 12 16:20:53 2012 -0500<br>
<br>
lxc-ls: Don't exit 1 when no container or help<br>
<br>
lxc-ls is currently exiting with return code 1 when called with --help<br>
or when called on a system without containers.<br>
<br>
This behaviour isn't documented in the manpage and isn't terribly intuitive.<br>
It's been the source of quite a few weird failures in scripts running with<br>
set -e.<br>
<br>
As a user calling --help is a voluntary action, lxc-ls should exit 0.<br>
<br>
Also, as lxc-ls's goal is solely to list containers, showing an error and<br>
exiting with return code 1 when there's no container seems counter-intuitive<br>
and error-prone.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 9b106331e79de6dc328b5545b4b188b527224dee<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 12 15:56:41 2012 -0500<br>
<br>
Update .gitignore for current list of binaries and templates<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 7822022c4c72cee06905b540b89b653491d6f6b2<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 12 15:38:50 2012 -0500<br>
<br>
Detect which name to use for docbook2x-man<br>
<br>
docbook2x-man doesn't have the same name on Debian based systems as<br>
on RedHat based systems, add some magic to configure.ac to detect and<br>
substitute the proper name in Makefile.am<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit aa8d013ec5b09cd1cd904173d6234ef126eb2126<br>
Author: Peter Simons <simons@cryp.to><br>
Date: Sat Oct 20 11:47:22 2012 +0200<br>
<br>
Update documentation to Docbook 4.5<br>
<br>
The package 'docbook-tools' [1] required to format Docbook 3.0 into man pages<br>
has been obsoleted a long time ago and can no longer be downloaded from its<br>
former homepage. Recent versions of that package -- now called 'docbook2X' --,<br>
cannot deal with that old markup format anymore (and don't support the '-w all'<br>
command line switch either). To remedy these issues, all SGML files have been<br>
updated to Docbook 4.5 so that recent versions of docbook2man can process them.<br>
<br>
[1] http://sources.redhat.com/docbook-tools/<br>
[2] http://docbook2x.sourceforge.net/<br>
<br>
Signed-off-by: Peter Simons <simons@cryp.to><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit e54d6cce171d9b18e2ec553e4c30c17d4462332e<br>
Author: Frank Scholten <frank@frankscholten.nl><br>
Date: Fri Oct 26 19:22:26 2012 +0200<br>
<br>
Updated README and INSTALL. autogen.sh command should be run before configure.<br>
<br>
Signed-off-by: Frank Scholten <frank@frankscholten.nl><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 5bf2c5ce9ba2539efbf81928ef6ccb96d959bcf8<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 12 14:39:43 2012 -0500<br>
<br>
Fix check against LXCROOTFSMOUNT to use strcmp<br>
<br>
The check for conf->rootfs.mount not being equal to LXCROOTFSMOUNT<br>
wasn't done with strcmp which was leading to undefined behaviour<br>
and triggered gcc warnings.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit eeb6cb8305a213c29ee20e4a0c4d4c1418c88dd8<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 12 14:33:55 2012 -0500<br>
<br>
Fix autogen failing because of clean/distclean overrides<br>
<br>
A previous patch added a clean/distclean target to config/Makefile.am.<br>
This conflicts with automake's own target.<br>
<br>
This change replaces those by a clean-local and distclean-local target.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit ad563aea971ac9317acac180e42cd271698208fd<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Nov 12 14:32:39 2012 -0500<br>
<br>
Set automake flags and CFLAGS<br>
<br>
Set automake's flags to -Wall -Werror as well as the general<br>
CFLAGS to -Wall and -Werror when building using gcc.<br>
<br>
This should catch any regression on build warnings now that we are in<br>
a pretty clean state.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 434445ee1e9f22b55ce8994d78794ae33a6d8247<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Thu Oct 25 13:46:34 2012 -0400<br>
<br>
Reinstate README file in rootfs directory<br>
<br>
Change 5fd8314f removed the README file explaining why the<br>
rootfs directory has to exist. Doing so broke the build on<br>
Fedora 17 since this directory will not be created by make<br>
install and thus the spec file cannot find it.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 64c3c9020bb797cc902f3915c71971a4b1bd8502<br>
Author: Diego Elio Petten?? <flameeyes@flameeyes.eu><br>
Date: Sat Nov 10 20:55:10 2012 -0800<br>
<br>
build: make sure to expand all variables that are substituted.<br>
<br>
This fixes lxc-sshd still referring to '${libdir}'.<br>
<br>
Signed-off-by: Diego Elio Petten?? <flameeyes@flameeyes.eu><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit d76db55b6c54c52fee905ecbb8773cd8ae1eb499<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Oct 31 08:20:52 2012 +0100<br>
<br>
lxc-start-ephemeral: Wipe the whole container on exit, not just the rootfs<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit f282a2f4b8f1d44702eb746c8554408d802f402d<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Oct 24 20:41:07 2012 +0200<br>
<br>
Revert "Update documentation to Docbook 4.5"<br>
<br>
This reverts commit 9a84044bc97098821cce2721ea40a1368f17a091.<br>
<br>
The changes made the branch to fail to build on Ubuntu/Debian, so<br>
reverting the commits and re-opening the pull request.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit efa99b32264acd577e36d9367f035d6cbde606a4<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Oct 24 20:41:01 2012 +0200<br>
<br>
Revert "Convert remaining file to new docbook format"<br>
<br>
This reverts commit 8587ac4b855b7b66931a37742c45cd2c8c624658.<br>
<br>
The changes made the branch to fail to build on Ubuntu/Debian, so<br>
reverting the commits and re-opening the pull request.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit e03243397debaf3a72b227930c334935ff9f8cae<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Oct 24 15:32:52 2012 +0200<br>
<br>
Convert remaining file to new docbook format<br>
<br>
commit 75d0acd48f46e63b3d6e835ffbf36a771ecd2a4a<br>
Author: Peter Simons <simons@cryp.to><br>
Date: Sat Oct 20 11:47:22 2012 +0200<br>
<br>
Update documentation to Docbook 4.5<br>
<br>
The package 'docbook-tools' [1] required to format Docbook 3.0 into man pages<br>
has been obsoleted a long time ago and can no longer be downloaded from its<br>
former homepage. Recent versions of that package -- now called 'docbook2X' --,<br>
cannot deal with that old markup format anymore (and don't support the '-w all'<br>
command line switch either). To remedy these issues, all SGML files have been<br>
updated to Docbook 4.5 so that recent versions of docbook2man can process them.<br>
<br>
[1] http://sources.redhat.com/docbook-tools/<br>
[2] http://docbook2x.sourceforge.net/<br>
<br>
Signed-off-by: Peter Simons <simons@cryp.to><br>
<br>
commit e2611fd5e14681470a4f2b48723584bba5b461ea<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Oct 19 23:06:12 2012 +0200<br>
<br>
python-lxc: Add missing space between two help lines<br>
<br>
One character fix making the documentation readable in help()<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit f0e592fc66bbfd4c8cf73f91536f326ccf483f22<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Thu Oct 18 12:50:02 2012 -0400<br>
<br>
Add distro config file /etc/lxc/lxc.conf<br>
<br>
[PATCH] Clean the lxc.conf file<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 6f75ba0bdab3ab1f29773740611bb0ce6f9ab99c<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Wed Oct 17 13:28:27 2012 -0400<br>
<br>
Add distro config file /etc/lxc/lxc.conf<br>
<br>
This allows a distro to put the distro specific default network<br>
configuration (for example bridge device, link type), or other lxc<br>
configuration in the case that -f is not passed by the user to<br>
lxc-create, in which case lxc-create will use the distro conf file as<br>
the basis for the containers config.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit b1dc05fde974bc50f70c58857fc630c829aa2a18<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Oct 15 09:42:26 2012 -0400<br>
<br>
Honor network type and link from lxc-create -f<br>
<br>
Make the oracle template honor the lxc.network.type and<br>
lxc.network.link configuration items if a "base" configuration file is<br>
passed to lxc-create. If no configuration file is passed and the host<br>
system is Oracle or Fedora, the template assumes a type of veth and<br>
the default name created by libvirt.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
commit 7060353a087b66f37c0134eb485baf777e949973<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Oct 15 09:42:18 2012 -0400<br>
<br>
Fix removal of unneeded startup/shutdown scripts<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
commit b88d7bb629849748346c1faf394d30c4c740ddf9<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Oct 15 09:42:10 2012 -0400<br>
<br>
Always rebuild rpm database<br>
<br>
Always rebuild the rpm database with the guest's rpm so there are no<br>
db version mismatches when you boot the guest and run rpm or yum.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
commit b90270a5a3767933cab04cb82b530bf76fc0bf10<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Oct 15 09:42:02 2012 -0400<br>
<br>
Better rpm database downgrade logic<br>
<br>
Use the file command to see if the rpm database version needs to<br>
be downgraded. Use the lsb_release command to determine the host<br>
system, which is then used to set the commands needed to do the<br>
conversion, and lets us move the rpm database to the correct location<br>
if the host rpm doesn't put it where the guest expects it to be.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
commit 708f4a80ea464edd3805f2024d65a2e795265080<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Fri Oct 5 16:40:21 2012 -0500<br>
<br>
add oracle template (From: Dwight Engen)<br>
<br>
This is a new template to create containers based on Oracle Linux. A version<br>
such as 5.8, 6.3, or 6.latest can be specified with -R in which case a rootfs<br>
will be created from rpms downloaded from the Oracle public-yum repo.<br>
Alternatively the path to an existing rootfs of Oracle 5 or 6 may be given to<br>
the template with the -t option.<br>
<br>
The architecture of the downloaded rpms installed in the container can be<br>
specified with the -a template option.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 037ba55cbee97bb9e1be95423c358ac1a7b33a2a<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Wed Sep 26 12:59:24 2012 -0400<br>
<br>
fix minor spelling error<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
commit 17ed13a3bca0a809273daf535f38ee166b110188<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Fri Sep 14 14:42:24 2012 -0500<br>
<br>
Support individual hook types in clear_config_item<br>
<br>
Without this patch, only clear_config_item("lxc.hook") works.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit f6144ed443995a7d5bdbae217c6ba3ef3e341d16<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Thu Sep 13 09:41:01 2012 -0500<br>
<br>
api shutdown: don't c->stop() if already stopped.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 5a339bbb87e06cb4687056e07985eeb6bafef002<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Sep 13 10:31:24 2012 -0400<br>
<br>
api_test.py: Remove workarounds for API bugs<br>
<br>
The script used to contain a workaround for back when create()<br>
wouldn't properly flush the config and reload it.<br>
As these issues have now been fixed, these workarounds can be removed.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit abbe2ead95fdee6a0d59da35ce3542439ec2abcc<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Sep 13 10:08:39 2012 -0400<br>
<br>
lxc-start-ephemeral: startup time improvement<br>
<br>
Re-organize the code to only call get_ips() when we actually need<br>
the IP address of the container.<br>
<br>
Also bump the timeout for get_ips() from 5s to 10s to accomodate<br>
slower machines.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 6506255cfdab516114e35266c9d70b7ed3cd2bec<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Sep 13 10:04:57 2012 -0400<br>
<br>
lxc-start-ephemeral: Exit with command return code<br>
<br>
When using lxc-start-ephemeral to directly call a command, return<br>
ssh's return code (the command's return code) when exiting.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 9737a2060ca725bb6622736f2bf2ebb6656a8d7f<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Sep 13 10:03:21 2012 -0400<br>
<br>
lxc-start-ephemeral: Drop stop() calls when shutdown() returns non-True<br>
<br>
shutdown() when given a timeout already does a stop call so there's no<br>
need to check its return value and do another one.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 225b52ef15d77d017c47b026313f3fabcf423a28<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Sep 12 13:12:50 2012 -0400<br>
<br>
lxc-start-ephemeral: Add missing return call to wait override<br>
<br>
When overriding wait(), I forgot to actually return the value coming<br>
from the C binding...<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 921ceb26bdb8ae6425f87789005e337f98aa4305<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Sep 12 12:48:34 2012 -0400<br>
<br>
lxc-start-ephemeral: Fix typo causing crash at startup<br>
<br>
Apparently a ")" was dropped in a recent change, causing<br>
lxc-start-ephemeral to fail to start completely (invalid syntax).<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 5b12984bf9d1d952a402932d3d87aaef2d1ca6f2<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Tue Sep 11 17:06:05 2012 -0400<br>
<br>
fix expansion of LXCPATH,LXCROOTFSMOUNT,LXCTEMPLATEDIR<br>
<br>
These variables are not expanded correctly in doc/lxc-create.sgml.in<br>
and a workaround is in place to ensure ${localstatedir}, and ${datadir}<br>
are set in the various shell scripts that use it. There is no workaround<br>
to ensure ${datadir} is set in src/lxc/lxc-create.in, nor is<br>
${localstatedir} set in templates/lxc-altlinux.in so I think that these<br>
are currently broken.<br>
<br>
Using AS_AC_EXPAND instead of AC_SUBST fixes these problems and removes<br>
the need for the workarounds. In addition the lxc-start-ephemeral.in<br>
script can be autoconf'ed instead of sed'ed by the makefile.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
<br>
commit 0d2787be930588ac04854dcc2dd0ba85a2cbec48<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Sep 10 14:26:36 2012 -0400<br>
<br>
fix gcc error: typedef redefinition (against git staging)<br>
<br>
Fix gcc error confile.c:83: error: redefinition of typedef ???config_cb???.<br>
Its already defined the same way in confile.h.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@canonical.com><br>
<br>
commit 1f530df63238a22a9e74c13df27cb027b8c9cfe6<br>
Author: Dwight Engen <dwight.engen@oracle.com><br>
Date: Mon Sep 10 14:26:43 2012 -0400<br>
<br>
fix compile without apparmor (against git staging)<br>
<br>
Add a few missing #if's to fix compilation when configured without<br>
AppArmor.<br>
<br>
Signed-off-by: Dwight Engen <dwight.engen@oracle.com><br>
Acked-by: Serge E. Hallyn <serge.hallyn@canonical.com><br>
<br>
commit 87540ad7d8cc3716d3e2204ffbdc7a81d5bf7d90<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Sep 10 14:06:06 2012 -0400<br>
<br>
python-lxc: Always convert state passed to wait() to uppercase<br>
<br>
At Serge's suggestion, always convert the state passed to the wait()<br>
function in the python API to its uppercase equivalent.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 16216c83297543692b8dede52c9dd8a998758e9c<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Sun Sep 9 13:14:38 2012 -0400<br>
<br>
Prefix the test binaries by lxc-test-<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 9c9b984556a3ad14847cb603897ab1689a0db721<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Fri Sep 7 17:52:06 2012 -0500<br>
<br>
check return values of scanf and system<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 733a0e89ac30930a951f38620ab28a014e621a79<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Fri Sep 7 17:48:29 2012 -0500<br>
<br>
check sscanf return value<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 95a717e9b907de94bf29c91abca13012ec47d088<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Sep 7 14:53:19 2012 -0400<br>
<br>
Fix previous commit, removing hardcoded /var/lib/lxc from lxc-start-ephemeral<br>
<br>
The previous commit was missing part of the changes, leading to a non-working<br>
version of lxc-start-ephemeral.<br>
<br>
This commit adds the missing parts.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit caf32f58cd5b24cdd127dce6823e10a8a5323112<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Sep 7 14:37:58 2012 -0400<br>
<br>
Remove hardcoded /var/lib/lxc from lxc-start-ephemeral<br>
<br>
Add dependency on sed and add a Makefile.am section for lxc-start-ephemeral<br>
so that it gets updated at build time for the right container path.<br>
<br>
commit d7415aea482652cd4b035d18c4bcf0edfc409d5f<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Sep 7 13:11:05 2012 -0400<br>
<br>
Add lxc-start-ephemeral<br>
<br>
This commit adds lxc-start-ephemeral as a python script using the<br>
new python-lxc API.<br>
<br>
This script is somewhat similar to lxc-clone except that it uses<br>
overlayfs or aufs to provide an overlay on top of the source container.<br>
<br>
It also allows the user to directly run a command in the container using<br>
SSH and can fetch the IP address from the container when starting the<br>
container in the background.<br>
<br>
The initial work on lxc-start-ephemeral was done by Serge Hallyn in Ubuntu,<br>
this is a re-implementation of it using python and the new LXC hooks.<br>
<br>
Compared to the shell implementation, there are three notable differences:<br>
- When starting without a command, lxc-start-ephemeral now attaches to tty1<br>
- When starting in the background (-d), the name and IP of the container is<br>
shown on screen.<br>
- A new "-k" option is added, allowing the user to keep the ephemeral<br>
container after shutdown. This turns off the tmpfs backend and sets up the<br>
hooks so that the container can be started/stopped multiple times.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 697fa6390c5d52eaef36a15c31b68d093a0d0941<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Fri Sep 7 11:14:04 2012 -0500<br>
<br>
dual-fork for daemonized fork in lxcapi-start<br>
<br>
So the container will be reparented by init. Otherwise children of the<br>
lxc-start might be reaped by python3 rather than lxc-start.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 59b3bc264cbf0996cd7b446afd219ab1ff0fe53c<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Fri Sep 7 10:50:36 2012 -0400<br>
<br>
Remove zombie_handler from python-lxc code<br>
<br>
This code was addeed to deal with stopped/dead containers but<br>
really shouldn't be implemented there. Instead the setsid() call in<br>
start() should be enough to prevent python from getting the SIGCHLD and<br>
having to deal with it.<br>
<br>
commit cbd4c46406b0a34291a9962c834b7de871ce30ce<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Thu Sep 6 16:06:27 2012 -0400<br>
<br>
Raise exception when getting Container instance as non-root in python3-lxc<br>
<br>
The liblxc API currently doesn't work as non-root, so check that the euid<br>
is 0 when getting a Container instance in the python API.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 767d4c6743155a6835a596fc6b1baf56e14ad430<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Thu Sep 6 12:45:16 2012 -0500<br>
<br>
premount hook is implemented in git<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 472c97e97684494ecfd0541fa779c301a1855447<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Thu Sep 6 12:26:29 2012 -0500<br>
<br>
document lxc.hooks in lxc.conf manpage<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 8eb5694bafff6be81a35542c584e82817a1e0852<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Wed Sep 5 21:55:38 2012 -0500<br>
<br>
Add lxc_conf_free()<br>
<br>
Then after lxcapi container->create(), free whatever lxc_conf may be<br>
loaded and reload from the newly created configuration file.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 64fca455ae305704929a03c27f3ed5866abe8e15<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Sep 4 18:06:44 2012 -0500<br>
<br>
get_item(utsname): don't dereference utsname if it is NULL<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 4a7c7daa260467f3c9b234495bf3283fe31c01cb<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Sep 4 14:18:03 2012 -0500<br>
<br>
Fix passing non-const char* in for const char*<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit c278cef2ecd6fc42132d02f982e113414f5f9ce4<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Sep 4 14:10:40 2012 -0500<br>
<br>
check chdir(/) return value<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 89eaa05ed1a1ddd5d2552c323b5228def627d731<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Tue Sep 4 13:57:39 2012 -0500<br>
<br>
replace HOOK define with proper code.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit e0de36d791e82d9916cad4ac41562077cf9789c3<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Sat Sep 1 22:55:03 2012 -0400<br>
<br>
Add better example/test of the python3-lxc API<br>
<br>
Replaced python-lxc/test.py by a new api_test.py script that<br>
uses all the available function of the API to run a batch of<br>
basic tests.<br>
<br>
This example is useful both as a test of the API and as a guide on<br>
how to use the python API to manage containers.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 38b280ca2cf8895fc1d03c0034ef5bbce847cf0f<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Sat Sep 1 20:25:28 2012 -0400<br>
<br>
Remove unused v1 and v2 variables in main()<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 85a9d078274587b5ef7bf97f7e26c9f121947c03<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Sat Sep 1 20:22:39 2012 -0400<br>
<br>
Cleanup lxc_wait<br>
<br>
- Remove unused timeout_handler function.<br>
- Remove unsused variables from main()<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit fe88b9d2f39375b043970788cfc16bd0bfd42322<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Sat Sep 1 20:19:53 2012 -0400<br>
<br>
Remove unused "i" variable in lxc_get_item_nic<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 427b3a21ef99f2fb99ae35ea02b7c49b1a9e117c<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Sat Sep 1 20:17:32 2012 -0400<br>
<br>
Change lxc_remove_nic from returning int to void<br>
<br>
The function wasn't returning anything and none of the callers<br>
were checking for a return code.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 525421c923d798cdea9e5691bcee1e5e5530491d<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Sat Sep 1 19:57:11 2012 -0400<br>
<br>
Make building the API tests/examples optional<br>
<br>
Add a new --enable-tests option to configure which is used to<br>
optionally build the tests/examples. Default is off.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 5ea6163a62c386f403b6d01df2780ff9308bf08f<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Fri Aug 31 12:25:38 2012 -0500<br>
<br>
Add lxc.hook.pre-mount<br>
<br>
This happens in the container's namespace, but before the rootfs is<br>
setup and mounted. This gives us a chance to mangle the rootfs - i.e.<br>
ecryptfs-mount it.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 06200a37fcdb627fce265e263947862b70bacdbf<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Fri Aug 31 11:28:42 2012 -0500<br>
<br>
lxc-wait: initialize timeout to -1<br>
<br>
Otherwise it defaults to 0, meaning don't wait. -1 means wait forever,<br>
which is what we want as the default behavior.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 69d66f1e729aadfcf2f47aaedaf738a888e4646d<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Wed Aug 29 09:27:53 2012 -0700<br>
<br>
Add lxc.aa_profile example to all templates<br>
<br>
LXC has optional apparmor support, default profile is lxc-container-default.<br>
This change adds a commented "lxc.aa_profile = default" line to all templates,<br>
uncommenting this will bypass apparmor for the container.<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 0a8722fd78ca1f7eae1ebdd831fabf3289e7e67e<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Aug 28 13:53:30 2012 -0400<br>
<br>
Rename runapitests.bash to runapitests.sh and make it use /bin/sh<br>
<br>
This is a simple POSIX shell script, so no need for the weird extension<br>
or for the explicit use of /bin/bash<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit cbe3a58b138e7596d53bb93e5a17d084ba1350dc<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Tue Aug 28 13:51:02 2012 -0400<br>
<br>
Remove duplicate copy of runapitests.bash<br>
<br>
Signed-off-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit be2e4e54da3c8054525321422f7f290d45b32a6c<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Aug 27 19:04:43 2012 -0400<br>
<br>
Add python-lxc based on the new liblxc API.<br>
<br>
This adds a basic python binding done in C and a python overlay to<br>
extend some features and provide a user-friendlier API.<br>
<br>
This python API only supports python 3.x and was tested with >= 3.2.<br>
<br>
It's disabled by default in configure and can be turned on by using<br>
--enable-python.<br>
<br>
A basic example of the API can be found in src/python-lxc/test.py.<br>
More documentation and examples will be added soon.<br>
<br>
commit 7a44c8b447c4cac2b71bf842a61440bae9caf918<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Aug 27 19:01:36 2012 -0400<br>
<br>
When starting a container daemonized, wait for it to reach RUNNING state before returning the result of start().<br>
<br>
If the container doesn't reach RUNNING state in 5 seconds, a failure will be<br>
returned to the user.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7<br>
Author: St??phane Graber <stgraber@ubuntu.com><br>
Date: Mon Aug 27 18:53:00 2012 -0400<br>
<br>
Merge the liblxc API work by Serge Hallyn.<br>
<br>
This turns liblxc into a public library implementing a container structure.<br>
The container structure is meant to cover most LXC commands and can easily be<br>
used to write bindings in other programming languages.<br>
<br>
More information on the new functions can be found in src/lxc/lxccontainer.h<br>
Test programs using the API can also be found in src/tests/<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Acked-by: St??phane Graber <stgraber@ubuntu.com><br>
<br>
commit 7a0b0b5672a33c190eefb4b2d3e3693241c130f2<br>
Author: Christian Seiler <christian@iwakd.de><br>
Date: Wed Aug 22 00:03:16 2012 +0200<br>
<br>
lxc-attach: Add -R option to remount /sys and /proc when only partially attaching<br>
<br>
When attaching to only some namespaces of the container but not the mount<br>
namespace, the contents of /sys and /proc of the host system do not properly<br>
reflect the context of the container's pid and/or network namespaces, and<br>
possibly others.<br>
<br>
The introduced -R option adds the possibility to additionally unshare the<br>
mount namespace (when it is not being attached) and remount /sys and /proc<br>
in order for those filesystems to properly reflect the container's context<br>
even when only attaching to some of the namespaces.<br>
<br>
Signed-off-by: Christian Seiler <christian@iwakd.de><br>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com><br>
Cc: Daniel Lezcano <daniel.lezcano@free.fr><br>
<br>
commit e13eeea2db3743bf8d3fe2833e069a80e2c4102c<br>
Author: Christian Seiler <christian@iwakd.de><br>
Date: Wed Aug 22 00:03:15 2012 +0200<br>
<br>
lxc-attach: Add -s option to select namespaces to attach to<br>
<br>
This patch allows the user to select any list of namespaces (network, pid,<br>
mount, uts, ipc, user) that lxc-attach should use when attaching to the<br>
container; all other namespaces will not be attached to.<br>
<br>
This allows the user to for example attach to just the network namespace and<br>
use the host's (and not the container's) network tools to reconfigure the<br>
network of the container.<br>
<br>
Signed-off-by: Christian Seiler <christian@iwakd.de><br>
Cc: Daniel Lezcano <daniel.lezcano@free.fr><br>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com><br>
<br>
commit 39a5d5feeeebbffa7187ef318fb6a11fdb063fbe<br>
Author: Christian Seiler <christian@iwakd.de><br>
Date: Wed Aug 22 00:03:14 2012 +0200<br>
<br>
lxc-unshare: Move functions to determine clone flags from command line options to namespace.c<br>
<br>
In order to be able to reuse code in lxc-attach, the functions<br>
lxc_namespace_2_cloneflag and lxc_fill_namespace_flags are moved from<br>
lxc_unshare.c to namespace.c.<br>
<br>
Signed-off-by: Christian Seiler <christian@iwakd.de><br>
Cc: Daniel Lezcano <daniel.lezcano@free.fr><br>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com><br>
<br>
commit fc763ab77d48ecd191a402a11f778c46e114e79b<br>
Author: Christian Seiler <christian@iwakd.de><br>
Date: Wed Aug 22 00:03:13 2012 +0200<br>
<br>
lxc-attach: Detect which namespaces to attach to dynamically<br>
<br>
Use the command interface to contact lxc-start to receive the set of<br>
flags passed to clone() when starting the container. This allows lxc-attach<br>
to determine which namespaces were used for the container and select only<br>
those to attach to.<br>
<br>
Signed-off-by: Christian Seiler <christian@iwakd.de><br>
Cc: Daniel Lezcano <daniel.lezcano@free.fr><br>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com><br>
<br>
commit c8f7c5630e8312cab7e17539381f05dffe9193fa<br>
Author: Christian Seiler <christian@iwakd.de><br>
Date: Wed Aug 22 00:03:12 2012 +0200<br>
<br>
lxc-attach: Remodel cgroup attach logic and attach to namespaces again in parent process<br>
<br>
With the introduction of lxc-attach's functionality to attach to cgroups,<br>
the setns() calls were put in the child process after the fork() and not the<br>
parent process before the fork() so the parent process remained outside the<br>
namespaces and could add the child to the correct cgroup.<br>
<br>
Unfortunately, the pid namespace really affects only children of the current<br>
process and not the process itself, which has several drawbacks: The<br>
attached program does not have a pid inside the container and the context<br>
that is used when remounting /proc from that process is wrong. Thus, the<br>
previous logic of first setting the namespaces and then forking so the child<br>
process (which then exec()s to the desired program) is a real member of the<br>
container.<br>
<br>
However, inside the container, there is no guarantee that the cgroup<br>
filesystem is still be mounted and that we are allowed to write to it (which<br>
is why the setns() was moved in the first place).<br>
<br>
To work around both problems, we separate the cgroup attach functionality<br>
into two parts: Preparing the attach process, which just opens the tasks<br>
files of all cgroups and keeps the file descriptors open and the writing to<br>
those fds part. This allows us to open all the tasks files in lxc_attach,<br>
then call setns(), then fork, in the child process close them completely and<br>
in the parent process just write the pid of the child process to all those<br>
fds.<br>
<br>
Signed-off-by: Christian Seiler <christian@iwakd.de><br>
Cc: Daniel Lezcano <daniel.lezcano@free.fr><br>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com><br>
<br>
commit d5088cf2d3c077444aa28194340db2f23b94035a<br>
Author: Christian Seiler <christian@iwakd.de><br>
Date: Wed Aug 22 00:03:11 2012 +0200<br>
<br>
lxc-start: Add command to retrieve the clone flags used to start the container.<br>
<br>
Add the LXC_COMMAND_CLONE_FLAGS that retrieves the flags passed to clone(2)<br>
when the container was started. This allows external programs to determine<br>
which namespaces the container was unshared from.<br>
<br>
Signed-off-by: Christian Seiler <christian@iwakd.de><br>
Cc: Daniel Lezcano <daniel.lezcano@free.fr><br>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com><br>
<br>
commit 1881820ae4ff9004beef1bf7f04553580840441d<br>
Author: Serge Hallyn <serge.halyn@ubuntu.com><br>
Date: Tue Aug 21 10:11:23 2012 -0500<br>
<br>
lxc-create: Make location of container rootfs configurable<br>
<br>
Make 'dir' an explicit backing store type, which accepts '--dir rootfs'<br>
as an option to specify a custom location for the container rootfs. Also<br>
update lxc-destroy to now remove the rootfs separately, as removing<br>
@LXCPATH@/$name may not hit it.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 74a2b5864f2ece87bf522d1c1cbd590dc24c0c53<br>
Author: Jan Kiszka <jan.kiszka@siemens.com><br>
Date: Mon Jul 9 19:15:48 2012 +0200<br>
<br>
Add network-down script<br>
<br>
Analogously to lxc.network.script.up, add the ability to register a down<br>
script. It is called before the guest network is finally destroyed,<br>
allowing to clean up resources that are not reset/destroyed<br>
automatically. Parameters of the down script are identical to the up<br>
script except for the execution context "down".<br>
<br>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com><br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit c8dee0f165d19271bb0a83069dcbb65fbc02e73f<br>
Author: Serge Hallyn <serge.halyn@ubuntu.com><br>
Date: Fri Aug 17 14:06:34 2012 -0500<br>
<br>
Makefile.am: use right .h file name for seccomp<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit e767dd55995d20151987ca38eb00c8d43465ca41<br>
Author: Serge Hallyn <serge.halyn@ubuntu.com><br>
Date: Fri Aug 17 13:04:34 2012 -0500<br>
<br>
fix configure.ac for seccomp and apparmor<br>
<br>
Use --enable-XXX=check when not specified to get reasonable defaults.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 0d0527a929bf9f35b4d99c100dfc76449d67a906<br>
Author: Serge Hallyn <serge.halyn@ubuntu.com><br>
Date: Thu Aug 16 15:07:51 2012 -0500<br>
<br>
seccomp: include lxcseccomp.h in start.c<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 09ad624693cb0ef41cf246e2876b5f356783b34d<br>
Author: Serge Hallyn <serge.hallyn@ubuntu.com><br>
Date: Thu Aug 9 18:00:58 2012 -0500<br>
<br>
confile: support 'lxc.include' option to include other config files<br>
<br>
For instance<br>
<br>
lxc.include = /var/lib/lxc/commonopts<br>
<br>
in /var/lib/lxc/q1/config would cause the configuration in<br>
/var/lib/lxc/commonopts to be loaded when container q1 starts.<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
commit 8f2c3a702aae3545b631a2b4c6db99f87528553a<br>
Author: Serge Hallyn <serge.hallyn@canonical.com><br>
Date: Fri Jul 27 21:13:53 2012 -0500<br>
<br>
Introduce support for seccomp.<br>
<br>
Hi,<br>
<br>
This patch is so far just a proof of concept. The libseccomp api will be<br>
changing soon so it probably wouldn't be worth pulling this until it is<br>
updated for the new API.<br>
<br>
This patch introduces support for seccomp to lxc. Seccomp lets a program<br>
restrict its own (and its children's) future access to system calls. It<br>
uses a simple whitelist system call policy file. It would probably be<br>
better to switch to something more symbolic (i.e specifying 'open' rather<br>
than the syscall #, especially given container arch flexibility).<br>
<br>
I just wanted to get this out there as a first step. You can also get<br>
source for an ubuntu package based on this patch at<br>
https://code.launchpad.net/~serge-hallyn/ubuntu/quantal/lxc/lxc-seccomp<br>
<br>
Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com><br>
<br>
commit b486346aa2fad7de06c491755b9b50c58c27a017<br>
Author: Jan Kiszka <jan.kiszka@siemens.com><br>
Date: Thu Aug 9 17:54:48 2012 -0500<br>
<br>
lxc-wait: Add timeout option<br>
<br>
Allow to specify a timeout for waiting on state changes via lxc-wait.<br>
Helpful for scripts that need to handle errors or excessive delays in<br>
state changing procedures.<br>
<br>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com><br>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com><br>
<br>
-----------------------------------------------------------------------<br>
<br>
Summary of changes:<br>
.gitignore | 44 +-<br>
CONTRIBUTING | 7 +-<br>
COPYING | 16 +-<br>
INSTALL | 4 +-<br>
Makefile.am | 6 +-<br>
README | 37 ++-<br>
TODO | 2 +-<br>
config/Makefile.am | 15 +-<br>
config/acinclude.m4 | 16 +-<br>
config/lxc.conf.libvirt | 3 +<br>
config/lxc.conf.ubuntu | 3 +<br>
config/lxc.conf.unknown | 1 +<br>
configure.ac | 137 ++++-<br>
doc/FAQ.txt | 4 +-<br>
doc/Makefile.am | 21 +-<br>
doc/{ => legacy}/lxc-ls.sgml.in | 8 +-<br>
doc/lxc-attach.sgml.in | 127 ++++-<br>
doc/lxc-cgroup.sgml.in | 6 +-<br>
doc/lxc-checkpoint.sgml.in | 2 +-<br>
doc/lxc-console.sgml.in | 8 +-<br>
doc/lxc-create.sgml.in | 15 +-<br>
doc/lxc-destroy.sgml.in | 6 +-<br>
doc/lxc-execute.sgml.in | 6 +-<br>
doc/lxc-freeze.sgml.in | 6 +-<br>
doc/lxc-kill.sgml.in | 2 +-<br>
doc/lxc-ls.sgml.in | 153 ++++--<br>
doc/lxc-monitor.sgml.in | 8 +-<br>
doc/lxc-ps.sgml.in | 12 +-<br>
doc/lxc-restart.sgml.in | 2 +-<br>
doc/lxc-shutdown.sgml.in | 2 +-<br>
doc/lxc-start.sgml.in | 18 +-<br>
doc/lxc-stop.sgml.in | 8 +-<br>
doc/lxc-unfreeze.sgml.in | 6 +-<br>
doc/lxc-wait.sgml.in | 17 +-<br>
doc/lxc.conf | 2 +-<br>
doc/lxc.conf.sgml.in | 135 ++++-<br>
doc/lxc.sgml.in | 22 +-<br>
doc/rootfs/Makefile.am | 2 +-<br>
lxc.spec.in | 6 +-<br>
runapitests.sh | 32 +<br>
src/Makefile.am | 2 +-<br>
src/lxc/Makefile.am | 30 +-<br>
src/lxc/af_unix.c | 8 +-<br>
src/lxc/arguments.h | 2 +<br>
src/lxc/attach.c | 86 +++-<br>
src/lxc/attach.h | 3 +-<br>
src/lxc/cgroup.c | 175 +++++-<br>
src/lxc/cgroup.h | 3 +<br>
src/lxc/commands.c | 31 +-<br>
src/lxc/commands.h | 2 +<br>
src/lxc/conf.c | 580 +++++++++++++++++--<br>
src/lxc/conf.h | 40 ++-<br>
src/lxc/confile.c | 944 ++++++++++++++++++++++++++----<br>
src/lxc/confile.h | 12 +<br>
src/lxc/execute.c | 1 -<br>
src/lxc/genl.c | 4 +-<br>
src/lxc/genl.h | 4 +-<br>
src/lxc/{ => legacy}/lxc-ls.in | 7 +-<br>
src/lxc/list.h | 5 +<br>
src/lxc/log.c | 41 ++<br>
src/lxc/log.h | 4 +-<br>
src/lxc/lxc-checkconfig.in | 61 +-<br>
src/lxc/lxc-clone.in | 14 +-<br>
src/lxc/lxc-create.in | 258 +++++----<br>
src/lxc/lxc-destroy.in | 82 ++--<br>
src/lxc/lxc-device | 95 +++<br>
src/lxc/lxc-ls | 251 ++++++++<br>
src/lxc/lxc-netstat.in | 130 ++--<br>
src/lxc/lxc-ps.in | 169 +++---<br>
src/lxc/lxc-setcap.in | 62 ++-<br>
src/lxc/lxc-setuid.in | 66 ++-<br>
src/lxc/lxc-start-ephemeral.in | 289 +++++++++<br>
src/lxc/lxc-version.in | 2 +-<br>
src/lxc/lxc.h | 25 +<br>
src/lxc/lxc_attach.c | 114 ++++-<br>
src/lxc/lxc_info.c | 15 +-<br>
src/lxc/lxc_monitor.c | 2 +-<br>
src/lxc/lxc_start.c | 27 +-<br>
src/lxc/lxc_unshare.c | 45 --<br>
src/lxc/lxc_wait.c | 81 +---<br>
src/lxc/lxccontainer.c | 1001 ++++++++++++++++++++++++++++++++<br>
src/lxc/lxccontainer.h | 79 +++<br>
src/lxc/lxclock.c | 105 ++++<br>
src/lxc/lxclock.h | 61 ++<br>
src/lxc/{attach.h => lxcseccomp.h} | 34 +-<br>
src/lxc/mainloop.c | 4 +-<br>
src/lxc/mainloop.h | 4 +-<br>
src/lxc/monitor.c | 24 +-<br>
src/lxc/namespace.c | 45 ++<br>
src/lxc/namespace.h | 3 +<br>
src/lxc/network.c | 16 +<br>
src/lxc/network.h | 3 +-<br>
src/lxc/nl.c | 14 +-<br>
src/lxc/nl.h | 32 +-<br>
src/lxc/rtnl.c | 2 +-<br>
src/lxc/rtnl.h | 4 +-<br>
src/lxc/seccomp.c | 155 +++++<br>
src/lxc/start.c | 88 +++-<br>
src/lxc/start.h | 1 +<br>
src/lxc/state.c | 115 ++++<br>
src/lxc/state.h | 1 +<br>
src/python-lxc/Makefile.am | 22 +<br>
src/python-lxc/examples/api_test.py.in | 158 +++++<br>
src/python-lxc/lxc.c | 620 ++++++++++++++++++++<br>
src/python-lxc/lxc/__init__.py.in | 468 +++++++++++++++<br>
src/python-lxc/setup.py | 10 +<br>
src/tests/Makefile.am | 23 +<br>
src/tests/containertests.c | 262 +++++++++<br>
src/tests/createtest.c | 92 +++<br>
src/tests/destroytest.c | 104 ++++<br>
src/tests/get_item.c | 308 ++++++++++<br>
src/tests/getkeys.c | 71 +++<br>
src/tests/locktests.c | 239 ++++++++<br>
src/tests/saveconfig.c | 106 ++++<br>
src/tests/shutdowntest.c | 93 +++<br>
src/tests/startone.c | 264 +++++++++<br>
templates/Makefile.am | 3 +<br>
templates/lxc-altlinux.in | 134 +++---<br>
templates/lxc-archlinux.in | 30 +-<br>
templates/lxc-busybox.in | 144 ++---<br>
templates/lxc-debian.in | 119 ++--<br>
templates/lxc-fedora.in | 110 ++--<br>
templates/lxc-lenny.in | 120 ++--<br>
templates/lxc-opensuse.in | 122 ++--<br>
templates/lxc-oracle.in | 557 ++++++++++++++++++<br>
templates/lxc-sshd.in | 40 +-<br>
templates/lxc-ubuntu-cloud.in | 22 +-<br>
templates/lxc-ubuntu.in | 68 ++-<br>
128 files changed, 9377 insertions(+), 1422 deletions(-)<br>
create mode 100644 config/lxc.conf.libvirt<br>
create mode 100644 config/lxc.conf.ubuntu<br>
create mode 100644 config/lxc.conf.unknown<br>
copy doc/{ => legacy}/lxc-ls.sgml.in (94%)<br>
create mode 100644 runapitests.sh<br>
rename src/lxc/{ => legacy}/lxc-ls.in (96%)<br>
create mode 100644 src/lxc/lxc-device<br>
create mode 100644 src/lxc/lxc-ls<br>
create mode 100644 src/lxc/lxc-start-ephemeral.in<br>
create mode 100644 src/lxc/lxccontainer.c<br>
create mode 100644 src/lxc/lxccontainer.h<br>
create mode 100644 src/lxc/lxclock.c<br>
create mode 100644 src/lxc/lxclock.h<br>
copy src/lxc/{attach.h => lxcseccomp.h} (57%)<br>
create mode 100644 src/lxc/seccomp.c<br>
create mode 100644 src/python-lxc/Makefile.am<br>
create mode 100644 src/python-lxc/examples/api_test.py.in<br>
create mode 100644 src/python-lxc/lxc.c<br>
create mode 100644 src/python-lxc/lxc/__init__.py.in<br>
create mode 100644 src/python-lxc/setup.py<br>
create mode 100644 src/tests/Makefile.am<br>
create mode 100644 src/tests/containertests.c<br>
create mode 100644 src/tests/createtest.c<br>
create mode 100644 src/tests/destroytest.c<br>
create mode 100644 src/tests/get_item.c<br>
create mode 100644 src/tests/getkeys.c<br>
create mode 100644 src/tests/locktests.c<br>
create mode 100644 src/tests/saveconfig.c<br>
create mode 100644 src/tests/shutdowntest.c<br>
create mode 100644 src/tests/startone.c<br>
create mode 100644 templates/lxc-oracle.in<br>
<br>
<br>
hooks/post-receive<br>
--<br>
lxc<br>
<br>
<br>
<br>
------------------------------<br>
<br>
------------------------------------------------------------------------------<br>
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial<br>
Remotely access PCs and mobile devices and provide instant support<br>
Improve your efficiency, and focus on delivering more value-add services<br>
Discover what IT Professionals Know. Rescue delivers<br>
http://p.sf.net/sfu/logmein_12329d2d<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Lxc-devel mailing list<br>
Lxc-devel@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/lxc-devel<br>
<br>
<br>
End of Lxc-devel Digest, Vol 52, Issue 31<br>
*****************************************<br>
<br>
</div>
</body>
</html>