1. 04 Jul, 2018 9 commits
  2. 21 May, 2018 1 commit
  3. 18 May, 2018 1 commit
  4. 17 May, 2018 15 commits
  5. 15 May, 2018 1 commit
  6. 14 May, 2018 9 commits
  7. 12 May, 2018 4 commits
    • Andrei Vagin's avatar
      fs: take into account that cr_system overrides standard descriptors · 17e80025
      Andrei Vagin authored
      (00.027596) mnt: Dumping mountpoints
      (00.027600) mnt: 	90: 2f:/ @ ./dev/pts
      (00.027614) mnt: 	130: 2e:/ @ ./run
      tar: /proc/self/fd/1: Cannot open: Not a directory
      tar: Error is not recoverable: exiting now
      Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
      17e80025
    • Andrei Vagin's avatar
      zdtm: mount tmpfs into /run in a test root · c7684913
      Andrei Vagin authored
      iptables creates /run/xtables.lock file and
      we want to have it per-test.
      
      (00.332159)      1: 	Running iptables-restore -w for iptables-restore -w
      Fatal: can't open lock file /run/xtables.lock: Permission denied
      Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
      c7684913
    • Andrei Vagin's avatar
      net: workaround a problem when iptables can't open /run/xtables.lock · 2af17257
      Andrei Vagin authored
      Starting with iptables 1.6.2, we have to use the --wait option,
      but it doesn't work properly with userns, because in this case,
      we don't have enough rights to open /run/xtables.lock.
      
      (00.174703)      1: 	Running iptables-restore -w for iptables-restore -w Fatal: can't open lock file /run/xtables.lock: Permission denied
      (00.192058)      1: Error (criu/util.c:842): exited, status=4
      (00.192080)      1: Error (criu/net.c:1738): iptables-restore -w failed
      (00.192088)      1: Error (criu/net.c:2389): Can't create net_ns
      (00.192131)      1: Error (criu/util.c:1567): Can't wait or bad status: errno=0, status=65280
      
      This patch workarounds this problem by mounting tmpfs into /run.
      Net namespaces are restored in a separate process, so we can create a
      new mount namespace and create new mounts.
      
      https://github.com/checkpoint-restore/criu/issues/469
      
      Cc: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
      Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: 's avatarAndrei Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
      2af17257
    • Andrei Vagin's avatar
      zdtm: create /run in a test root · 8a85222a
      Andrei Vagin authored
      iptables 1.6.2 fails without /run, because it tries to create
      the /run/xtables.lock file
      
      Test output: ================================
      Fatal: can't open lock file /run/xtables.lock: No such file or directory
      23:29:06.098:     4: ERR: netns-nf.c:21: Can't set input rule (errno = 2 (No such file or directory))
      23:29:06.098:     3: ERR: test.c:315: Test exited unexpectedly with code 255
      Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
      8a85222a