1. 07 Aug, 2012 4 commits
  2. 06 Aug, 2012 9 commits
  3. 02 Aug, 2012 25 commits
  4. 01 Aug, 2012 2 commits
    • Andrey Vagin's avatar
      restore: rework logic about temporary proc · 2e9ddccd
      Andrey Vagin authored
      We need proc for restoring processes. The existent /proc may be not suitable.
      E.g. If processes are in pidns.
      
      crtools mounts procfs in a temporary directory, but it should be
      umounted at the end. Before this patch crtools did that, but
      it doesn't work if processes in a mount namespace.
      
      Actually this logic can be simplified and this patch does that.
      * create a tmp dir
      * mount procfs
      * open this directory and save a file descriptor.
      * detach procfs
      * remove the tmp dir
      * access to proc via openat, statat and so on.
      Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      2e9ddccd
    • Pavel Emelyanov's avatar
      parasite: Don't recreate host-side transport socket · 2f272fa1
      Pavel Emelyanov authored
      When dumping a net namespace we'll have to create the transport
      socket in the target namespace. In order to do this we'll have
      to call setns swice -- before and after socket() call.
      
      I don't want to do it for every single task to dump, let's cache
      the socket instead.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      2f272fa1