- 06 Jan, 2014 4 commits
-
-
KATOH Yasufumi authored
* lxc-attach(1): Update to the status of kernel 3.8 or higher * lxc-create(1), lxc-destroy(1): Now lxc-ls don't have "-l" option, so remove * lxc(7): update description of lxc-ls and lxc-info to current version * see-also: fix lxc(1) to lxc(7) Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
KATOH Yasufumi authored
Update for commit a771fe18Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
S.Çağlar Onur authored
Add pthread_atfork check to configure.ac and uses it when necessary, Introduces tls.m4 macro for checking thread-local storage support, Puts values array into thread-local storage (lxc_global_config_value@src/lxc/utils.c), Removes static_lock/static_unlock from LXC code. Lastly, it introduces a warning for bionic users about multithreaded usage of LXC. (requires 64b1be29 to be reverted first) Signed-off-by:
S.Çağlar Onur <caglar@10ur.org> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
This reverts commit 64b1be29. Reverting in preparation for another implementation which is bionic-compatible. Signed-off-by:
Stéphane Graber <stgraber@ubuntu.com>
-
- 03 Jan, 2014 1 commit
-
-
Dwight Engen authored
This change updates the way init scripts get installed so that more than one init system can be supported. Instead of installing the systemd service file from the spec file, it should be installed at make install time, so that someone compiling from source also gets the unit file installed. Update the plamo template to use a lock file not named just /var/lock/subsys/lxc since the presence of that file is used by sysv init rc file to know if it should run the K01lxc script. This also makes it consistent with the other templates which use /var/lock/subsys/lxc-$template-name. Signed-off-by:
Dwight Engen <dwight.engen@oracle.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
- 02 Jan, 2014 6 commits
-
-
Serge Hallyn authored
Stéphane noticed that lxc-snapshot of a dir-backed container created an overlayfs container. The expectation is that the user can continue to modify the original container and later make a new snapshot, but this doesn't work with the existing behavior - the overlayfs clone will end up with the modified contents. So add a 'LXC_CLONE_KEEPBDEVTYPE' flag, which c->snapshot() passes to c->clone(). Also add a LXC_CLONE_MAYBE_SNAPSHOT. If this is set and a backing store does not support snapshotting, then proceed with a copy clone. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Dwight Engen authored
It is desirable to have a mode where a soft shutdown is requested, but then do a hard shutdown if after some time period the container has not shut down. This the default behaviour of lxc-stop, but is not currently possible with lxc-autostart. This change makes this the default behaviour when shutdown is specified to lxc-autostart. This will be very useful for init scripts. An indefinte wait for soft shutdown (though I'm not sure how that would be useful) is still possible by passing a timeout of 0. Change default timeout value to 60 seconds to match lxc-stop Signed-off-by:
Dwight Engen <dwight.engen@oracle.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Michael H. Warfield authored
Additional logic for dealing with container shutdown / reboot Fix a problem with CentOS containers and legacy Fedora (<16) containers not shutting down or rebooting properly. Copy /etc/init.d/halt to /etc/init.d/lxc-halt, deleting everything from the "hwclock save" and all after and append a force halt or reboot at the end of the new script, to prevent reexecing init. Link that script in as S00lxc-halt in rc0.d and S00lxc-reboot in rc6.d to intercept the shutdown process before it gets to S01halt / S01reboot causing the hang. Fixed some typos in the CentOS template that were introduced in the previous patch for hwaddr settings and missed in regression testing. Cleaned up some instruction typos and tabs from previous patch. Signed-off-by:
Michael H. Warfield <mhw@WittsEnd.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Andrey Mazo authored
Signed-off-by:
Andrey Mazo <mazo@telum.ru> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Andrey Mazo authored
Mark most of functions that are used within only one file as static. After 95ee490b it's easy to prove they are not in public API. Several arrays and structs are also marked static. This prevents them from being exported from liblxc.so List of removed previously exported symbols: bdevs btrfs_ops check_autodev create_partial dir_ops dump_stacktrace get_mapped_rootid get_next_index lock_mutex loop_ops lvm_ops lxc_abort lxcapi_clone lxc_attach_drop_privs lxc_attach_get_init_uidgi lxc_attach_getpwshell lxc_attach_remount_sys_pr lxc_attach_set_environmen lxc_attach_to_ns lxc_clear_saved_nics lxc_config_readline lxc_devs lxc_free_idmap lxc_global_config_value lxc_poll lxc_proc_get_context_info lxc_set_state lxc_spawn mk_devtmpfs mount_check_fs ongoing_create overlayfs_destroy overlayfs_ops prepend_lxc_header remove_partial save_phys_nics setup_pivot_root signames static_mutex thread_mutex unlock_mutex unpriv_assign_nic zfs_ops Signed-off-by:
Andrey Mazo <mazo@telum.ru> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
This reverts commit 84e9e197, because it breaks bionic builds. The patch is desirable so hopefully we can come up with a solution or alternate patch soon.
-
- 01 Jan, 2014 3 commits
-
-
KATOH Yasufumi authored
* Improve Japanese translation * Fix mis-translation * Insert linefeed between paragraph, because some paragraph is too long, so sometimes git send-email could not use. Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Andrey Mazo authored
Signed-off-by:
Andrey Mazo <mazo@telum.ru> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
S.Çağlar Onur authored
Use "#include <somefile.h>" style for external or exported headers only. changes since v1: - adjusted formatting as Stéphane suggested Signed-off-by:
S.Çağlar Onur <caglar@10ur.org> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
- 25 Dec, 2013 8 commits
-
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Stéphane Graber authored
- Add doxygen and graphviz for the API doc build. - Pass --enable-tests to have the tests built (off by default) Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-
Michael H. Warfield authored
Backported typo fixes from CentOS template back to Fedora Template Bumped default rev from Fedora 18 to Fedora 19 Signed-off-by:
Michael H. Warfield <mhw@WittsEnd.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Michael H. Warfield authored
This deals with a reported issue when running and building containers on a CentOS host system. Fixed various typos in version checking when running on a CentOS system. Added logic for differences between point releases (6.5) and rolling (6). Added version detection logic when running on RHEL systems as well. Fixed cpe detection string (CentOS is not adhering to their own registration). Added logic to disable the pam_loginuid.so binary in containers. Signed-off-by:
Michael H. Warfield <mhw@WittsEnd.com> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Andrey Mazo authored
After 95ee490b they are not in public API and are not used throughout the lxc codebase. This has a bonus of removing workaround for bionic. Signed-off-by:
Andrey Mazo <mazo@telum.ru> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
Andrey Mazo authored
Signed-off-by:
Andrey Mazo <mazo@telum.ru> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
KATOH Yasufumi authored
patch /etc/inittab in plamo container to shutdown when it receives SIGPWR. (By default, plamo shutdowns to single user mode after 5minutes) Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
S.Çağlar Onur authored
Travis is a free hosted CI platform for the open source community. It integrates well with github and enables continous builds/tests for both repository itself and all the pull requests so that one can quickly see the result of the possible merge. This yml file is one of the few required steps to enable travis-ci support for LXC github repo. One of you guys still need to sign in travis-ci through GitHub OAuth and enable travis support from its profile page https://travis-ci.org/profile As an example https://travis-ci.org/caglar10ur/lxc-upstream/builds/15872074 can be seen changes since v1; - All external dependencies are now innstalled via before_install section - Dropped all configure flags as Stéphane suggested Signed-off-by:
S.Çağlar Onur <caglar@10ur.org> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
- 24 Dec, 2013 6 commits
-
-
KATOH Yasufumi authored
same as the commit 25070b66Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Andrey Mazo authored
Signed-off-by:
Andrey Mazo <mazo@telum.ru> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Andrey Mazo authored
Functions like open(), close(), socket(), socketpair(), pipe() and mkdir() are generally thin wrappers around kernel-provided system calls. It's the kernel not libc, who ensures race-free handling of file descriptors. Thus locking around these functions is unnecessary even on somewhat buggy libcs. fopen(), fclose() and other stdio functions may maintain internal lists of open file handles and thus can be prone to race-conditions. Hopefully, most libcs utilize proper locking or other ways to ensure thread-safety of these functions. Bionic used to have non-thread-safe stdio [2] but that must be fixed since android 4.3 [3, 4]. S.Çağlar Onur showed [1] that openpty() (because of nsswitch) is not thread-safe though. So we workaround it by protecting openpty() calls with process_lock()/process_unlock(). Because of the need to guard openpty() with process_lock()/process_unlock(), process_unlock() is still used after fork(). This commit reverts most of 025ed0f3. [1] https://github.com/lxc/lxc/pull/106#issuecomment-31077269 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=687367 [3] https://android.googlesource.com/platform/bionic/+/f582340a6a48588aa50da17e1620e8f91b146941 [4] https://android.googlesource.com/platform/bionic/+/6b3f49a5374305ce9690c3c5ca2aadc90f54c521Signed-off-by:
Andrey Mazo <mazo@telum.ru> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
KATOH Yasufumi authored
Commit 5444216b revised -n option from allowing to specify multiple containers using regex to specifying only one container. But lxc-info(1) remains original. so - mark -n required - remove the description of -n that is included in common options Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
KATOH Yasufumi authored
Update for commit 25070b66Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
- 23 Dec, 2013 9 commits
-
-
Stéphane Graber authored
Signed-off-by:
Stéphane Graber <stgraber@ubuntu.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
Signed-off-by:
Stéphane Graber <stgraber@ubuntu.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Andrey Mazo authored
Commit 4878dac4 introduced possible incorrect usage of free(). Also remove unneeded strdup(). Signed-off-by:
Andrey Mazo <mazo@telum.ru> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
This reverts commit 5cad2f04.
-
Serge Hallyn authored
This reverts commit 95b422fc. Conflicts: src/lxc/utils.c
-
Serge Hallyn authored
Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Serge Hallyn authored
A timeout means wait this long before killing the container. -s means don't kill the container. timeout defaults to 60 seconds. So if a shutdown is requested, then set timeout to 0. Signed-off-by:Serge Hallyn <serge.hallyn@ubuntu.com>
-
Stéphane Graber authored
When running unprivileged (euid != 0), LXC will now use the following paths: - Default lxc path: ~/.local/share/lxc/ - Default config path: ~/.config/lxc/lxc.conf Those two paths are based on standard XDG paths (though ignoring all the possible override paths for now at least) and so probably don't need to be configurable at build time. Signed-off-by:
Stéphane Graber <stgraber@ubuntu.com> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
S.Çağlar Onur authored
changes since v1; incorporated Serge's changes changes since v2; added missing Signed-off-by Signed-off-by:
S.Çağlar Onur <caglar@10ur.org> Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
-
- 22 Dec, 2013 2 commits
-
-
KATOH Yasufumi authored
Signed-off-by:
TAMUKI Shoichi <tamuki@linet.gr.jp> Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
KATOH Yasufumi authored
Signed-off-by:
Kouhei Maeda <mkouhei@gmail.com> Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by:
Stéphane Graber <stgraber@ubuntu.com>
-
- 20 Dec, 2013 1 commit
-
-
Stéphane Graber authored
Signed-off-by:Stéphane Graber <stgraber@ubuntu.com>
-