Skip to content
Permalink
Branch: criu-dev
Commits on Nov 12, 2016
  1. lib: add external support

    efiop authored and xemul committed Oct 21, 2016
    It is already present in rpc, so lets add it to libcriu too.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Commits on Oct 24, 2016
  1. lib: add inherit_fd

    efiop authored and xemul committed Oct 13, 2016
    It is already present in CLI and RPC, so libcriu should reflect it too.
    
    travis-ci: success for lib: add inherit_fd
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Commits on Jun 28, 2016
  1. test: add manual test for criu-coredump

    efiop authored and xemul committed May 21, 2016
    Convert criu images to coredumps and check if they are
    readable by readelf.
    
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
  2. test: fix manual crit test

    efiop authored and xemul committed May 21, 2016
    In automated tests we use test/crit-recode.py because of performance
    benefits(no need to launch python interpreter more than once), but
    manual test is still useful for manual testing, so lets make it
    work again.
    
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
  3. criu-coredump: merge criu-coredump project

    efiop authored and xemul committed May 21, 2016
    This patch introduces a new subproject called "criu-coredump". The name
    is pretty much self-explanatory, it allows generating coredumps from
    criu images. Coredumps are readable and usable by gdb. The structure is
    something in the middle of kernel-generated and gdb-generated core dumps.
    
    This is a first iteration of core-dump patch series. It introduces
    ability to generate gdb-operatable core dump only for x86_64 machines.
    To support other architectures there will be a set to introduce proper
    structures for notes section of the core dump. It is also worth noting,
    that we still leave some notes(SIGINFO primarily) not fullfilled, as
    I still need to figure out what to put in there in our case, where no
    signal is involved in triggering core dump generation and other
    caveats like zeroed vvar(we have problems with it withing CRIU itself
    as well as gdb has some difficalties with it) and vsyscall vmas.
    One can already use produced core dump with gdb, there is also
    a quick simple demo https://asciinema.org/a/18936 .
    
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Commits on May 6, 2016
  1. uninstall: use --record with setup.py, v2

    efiop authored and xemul committed Apr 28, 2016
    --record option allows us to keep track of files that are being
    installed by writing them to specified file. We can than use that
    file to do proper cleanup on uninstall.
    
    v2, drop -r, as we shouldn't really care about dirs, because
        setup.py doesn't report them to us.
    
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com>
    Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Commits on Oct 19, 2015
  1. pycriu: add criu class

    efiop authored and xemul committed Oct 12, 2015
    This class is essentially libcriu in python(yet for now it
    has only some basic functions such as check/dump/restore).
    It is needed to make life for python users even more easier,
    i.e. hiding some nasty connection stuff. It is also using
    criu swrk(COMM_BIN) communication method, instead of an old
    system service, as we no longer recommend it.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Oct 15, 2015
  1. test: libcriu: switch to using swrk instead of service

    efiop authored and xemul committed Oct 12, 2015
    As our tests serve as an example for people on how to preferably
    use criu, we need to also switch to swrk.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  2. libcriu: use swrk by default

    efiop authored and xemul committed Oct 12, 2015
    Not sure if it is okay, but this patch breaks backward compatibility,
    as we now discourage people from using criu as a system service by default.
    But it is better to be done rather sooner than later, considering criu service
    is not widely used.
    
    On a patch side, we just need to daemonize swrk if self-dump is requested.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  3. make: don't install service and logrotate configs

    efiop authored and xemul committed Oct 12, 2015
    As we've deleted them in previous two patches.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  4. criu: scripts: remove logrotate

    efiop authored and xemul committed Oct 12, 2015
    We don't need it without systemd configs.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  5. criu: scripts: remove criu service files

    efiop authored and xemul committed Oct 12, 2015
    As it is not recomended to run criu as a root system service, lets
    remove service file to stop encouraging people to do it.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Aug 7, 2015
  1. rpc: add constants for cgroups modes

    efiop authored and xemul committed Aug 6, 2015
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Aug 3, 2015
  1. gitignore: ignore binaries from test/libcriu

    efiop authored and xemul committed Aug 1, 2015
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  2. gitignore: ignore pie/piegen/piegen

    efiop authored and xemul committed Aug 1, 2015
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  3. libcriu: hide struct criu_opts

    efiop authored and xemul committed Jul 31, 2015
    Users shouldn't use it directly anyway, they should
    use criu_set* fucntions for that.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Jul 31, 2015
  1. libcriu: introduce CRIU_COMM_BIN

    efiop authored and xemul committed Jul 30, 2015
    In this mode libcriu will execute criu binary in swrk
    mode, so users are not always obliged to run criu service
    daemon.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  2. libcriu: move swrk launching code from restore_child to swrk_connect

    efiop authored and xemul committed Jul 30, 2015
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  3. libcriu: criu_restore_child: don't forget to set errno

    efiop authored and xemul committed Jul 30, 2015
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Jul 28, 2015
  1. libcriu: don't include rpc.pb-c.h into criu.h, v2

    efiop authored and xemul committed Jul 23, 2015
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Jul 21, 2015
  1. libcriu: criu_init_opts: don't leak on rpc and opts

    efiop authored and xemul committed Jul 21, 2015
    Reported-by: Andrew Vagin <avagin@gmail.com>
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Jul 16, 2015
  1. libcriu: allow user to specify service fd, v2

    efiop authored and xemul committed Jul 16, 2015
    Currently, libcriu is connecting to CRIU service
    by itself, just asking user for a path to socket.
    But in some cases users need to provide fd instead
    path. For example, sometimes task has no access to
    criu socket because of strict security mesures, but
    is able to inherit fd from a parent that has access
    to criu socket.
    
    v2, use union for addr and fd
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  2. test: libcriu: include protobuf dir

    efiop authored and xemul committed Jul 15, 2015
    We only need a rpc.pb-c.h header.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  3. libcriu: use criu_opts structure to keep all the options

    efiop authored and xemul committed Jul 15, 2015
    criu_opts contains rpc options and notify callback,
    so we can keep all options in just one structure.
    This will allow us to easily extend libcriu functionality
    and yet keep all options in one place.
    
    We're also not hiding rpc opts structure anymore, so
    it is pretty clear where power-user should put his own
    CriuOpts instance if he would like to do that.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Jul 13, 2015
  1. libcriu: add ability to use local options structure

    efiop authored and xemul committed Jul 13, 2015
    Having ability to have your own options structure is quite nice
    and allows much more flexible use of libcriu in cases when you
    want to have a bunch of instances of options structures.
    
    This patch also allows users to use raw CriuOpts structure
    modified in any suitable way, whether by libcriu's criu_local_set
    methods or by using protobuf-c directly.
    
    It is also worth noting, that backward-compatibility in API and ABI
    is preserved.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Acked-by: Tycho Andersen <tycho.andersen@canonical.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Jun 24, 2015
  1. pycriu: images: pb2dict: preserve fields order with "pretty" option

    efiop authored and xemul committed Jun 24, 2015
    Using collections.OrderedDict allows us to keep fields in the
    same order as they appear in corresponding proto files, which
    helps to impove readability. In non-pretty mode we still use
    regular dict.
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on May 12, 2015
  1. criu: systemd: allow enabling criu service

    efiop authored and xemul committed May 12, 2015
    Currently it is not possible to enable criu service after "make install",
    as it has no [Install] section in criu.service file.
    
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  2. criu: crit-install: use $PREFIX with --prefix instead of $DESTDIR

    efiop authored and xemul committed May 8, 2015
    Reported-by: Hui Kang hkang.sunysb@gmail.com
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on May 8, 2015
  1. pycriu: images: support netns.img

    efiop authored and xemul committed Apr 28, 2015
    Reported-by: Cyrill Gorcunov <gorcunov@gmail.com>
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Tested-by: Cyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on May 7, 2015
  1. libcriu: add skip_mnt and enable_fs support

    efiop authored and xemul committed May 6, 2015
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Apr 14, 2015
  1. crit: pycriu: images: fix images incoding and add more comments

    efiop authored and xemul committed Apr 10, 2015
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Mar 20, 2015
  1. reg-files: skip size for O_APPEND|O_WRONLY files, v2

    efiop authored and xemul committed Mar 19, 2015
    This is common for log files, when a number of processes
    are writing something into one file. Currently, if someone
    wrote something to log since dump happened, on restore criu
    will complain about "File has bad size" and refuse to restore.
    
    If file is opened with O_APPEND|O_WRONLY flags it is going to
    jump to the EOF anyway.
    
    v2, use O_ACCMODE and separate helper
    
    Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Commits on Feb 10, 2015
  1. log: chown log to current criu user

    efiop authored and xemul committed Jan 29, 2015
    User is already able to see it in stdout, so there is no
    reason why we should protect it.
    
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  2. log: chown pidfile to current criu user

    efiop authored and xemul committed Jan 29, 2015
    If criu run with suid bit set, user should be able
    to read pidfiles(i.e. service pidfile).
    
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  3. security: add cr_fchown

    efiop authored and xemul committed Jan 29, 2015
    Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Older
You can’t perform that action at this time.