criu/criu
Kirill Tkhai 8883c8cb3a net: Make criu do not fail on recent iproute2
Since iprule commit 67a990b81126 command "ip rule del" is not working anymore:

    iproute: disallow ip rule del without parameters

    Disallow run `ip rule del` without any parameter to avoid delete any first
    rule from table.

    Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>

So, criu restore fails with:

    Error (criu/net.c:1277): IP tool failed on rule delete

Fix that by explicit passing of rule's table.

v2: Use "ip rule flush" to main's and default's table rules at once.

travis-ci: success for net: Make criu do not fail on recent iproute2 (rev2)
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-11-12 11:10:43 +03:00
..
arch fix asm syntax to be clang-compatible 2016-11-12 11:05:57 +03:00
include criu: pagemap: use pid instead if id where appropriate 2016-11-12 11:06:21 +03:00
pie pie: Optimize send_fds() and recv_fds() with opts 2016-11-03 20:49:16 +03:00
action-scripts.c include/common: Move bug.h in 2016-11-03 00:13:03 +03:00
aio.c aio: don't leak memory 2016-06-28 13:09:40 +03:00
autofs.c criu: use xmalloc() 2016-11-12 11:06:19 +03:00
bfd.c include/common: Move bug.h in 2016-11-03 00:13:03 +03:00
bitmap.c common: Move in bit operation helpers 2016-11-03 00:13:04 +03:00
cgroup-props.c criu/*: annual pr_perror() usage sanitization 2016-11-12 11:06:21 +03:00
cgroup.c cgroup: update cgns prefix *after* using it 2016-11-03 01:32:55 +03:00
cr-check.c open_proc: don't print error twice 2016-11-12 11:06:00 +03:00
cr-dedup.c Add missing headers for ppc64, arm and aarch 2016-10-24 16:00:16 +03:00
cr-dump.c Use rlim_t where appropriate 2016-11-12 11:04:38 +03:00
cr-errno.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
cr-exec.c headers: Add missing headers for non-x86 (compilation fix) 2016-10-24 16:00:17 +03:00
cr-restore.c open_proc: don't print error twice 2016-11-12 11:06:00 +03:00
cr-service.c unix: Fix external unix inode type 2016-11-03 18:14:16 +03:00
crtools.c criu --help: fix --external dev description 2016-11-03 18:17:15 +03:00
eventfd.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
eventpoll.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
external.c mount: Make auto options into --external mnt 2016-11-03 18:15:03 +03:00
fault-injection.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
fifo.c pipe/fifo: Collect data via cinfo engine 2016-04-04 17:10:14 +03:00
file-ids.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
file-lock.c headers: Remove util.h from protobuf.h 2016-10-24 16:00:17 +03:00
files-ext.c collect: Add img argument to cinfo 2016-04-04 17:10:14 +03:00
files-reg.c Use xstrdup whether possible 2016-11-12 11:06:01 +03:00
files.c headers: Remove util.h from protobuf.h 2016-10-24 16:00:17 +03:00
filesystems.c filesystems: Add config.h inclusion 2016-11-04 01:36:16 +03:00
fsnotify.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
image-desc.c image: Rename binfmt_misc image format as "old" 2016-09-26 15:42:41 +03:00
image.c criu/*: annual pr_perror() usage sanitization 2016-11-12 11:06:21 +03:00
ipc_ns.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
irmap.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
kcmp-ids.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
kerndat.c open_proc: don't print error twice 2016-11-12 11:06:00 +03:00
libnetlink.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
log.c logging: make sure to not change errno 2016-11-12 11:06:00 +03:00
lsm.c lsm: move apparmor securityfs path to constant in lsm.h 2016-11-02 20:35:56 +03:00
Makefile make: Fixup dependency on config.h after pulling patches from -dev 2016-11-02 20:35:57 +03:00
Makefile.crtools mount: Move fstypes related code into separate files 2016-09-27 17:03:54 +03:00
Makefile.packages build: generate config.h in the top-make 2016-11-02 20:35:56 +03:00
mem.c Hide asm/types.h from sources 2016-10-24 16:00:16 +03:00
mount.c criu/*: annual pr_perror() usage sanitization 2016-11-12 11:06:21 +03:00
namespaces.c open_proc: don't print error twice 2016-11-12 11:06:00 +03:00
net.c net: Make criu do not fail on recent iproute2 2016-11-12 11:10:43 +03:00
netfilter.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
page-pipe.c criu: get rid of config-base.h 2016-11-02 20:35:56 +03:00
page-xfer.c criu: get rid of config-base.h 2016-11-02 20:35:56 +03:00
pagemap-cache.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
pagemap.c criu: pagemap: split read_pagemap_page into smaller chunks 2016-11-12 11:10:42 +03:00
parasite-syscall.c parasite: Use parasite_ctl as the argument to arch_can_dump_task 2016-11-03 01:32:55 +03:00
path.c include/common: Move bug.h in 2016-11-03 00:13:03 +03:00
pie-util-fd.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
pie-util-vdso.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
pie-util.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
pipes.c criu: get rid of config-base.h 2016-11-02 20:35:56 +03:00
plugin.c Use xstrdup whether possible 2016-11-12 11:06:01 +03:00
proc_parse.c criu/*: annual pr_perror() usage sanitization 2016-11-12 11:06:21 +03:00
protobuf-desc.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
protobuf.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
pstree.c headers: Remove util.h from protobuf.h 2016-10-24 16:00:17 +03:00
ptrace.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
rbtree.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
rst-malloc.c include/common: Move bug.h in 2016-11-03 00:13:03 +03:00
seccomp.c restore: Prepare on-restorer seccomp filters earlier 2016-06-01 14:52:22 +03:00
seize.c open_proc: don't print error twice 2016-11-12 11:06:00 +03:00
shmem.c open_proc: don't print error twice 2016-11-12 11:06:00 +03:00
sigframe.c Hide asm/restore.h from sources 2016-10-24 16:00:16 +03:00
signalfd.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
sk-inet.c sk: Move protobuf.h from socket .h-s to sk-inet.c 2016-10-24 16:00:17 +03:00
sk-netlink.c collect: Add img argument to cinfo 2016-04-04 17:10:14 +03:00
sk-packet.c headers: Remove util.h from protobuf.h 2016-10-24 16:00:17 +03:00
sk-queue.c Hide asm/types.h from sources 2016-10-24 16:00:16 +03:00
sk-tcp.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
sk-unix.c criu/*: annual pr_perror() usage sanitization 2016-11-12 11:06:21 +03:00
sockets.c headers: Remove util.h from protobuf.h 2016-10-24 16:00:17 +03:00
stats.c Added option to display dump/restore stats 2016-10-24 18:13:15 +03:00
string.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
sysctl.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
sysfs_parse.c log: Do not include criu-log when not needed 2016-10-24 16:00:17 +03:00
timerfd.c include/common: Move bug.h in 2016-11-03 00:13:03 +03:00
tty.c criu/*: annual pr_perror() usage sanitization 2016-11-12 11:06:21 +03:00
tun.c net: pass the struct nlattrs to dump() functions 2016-11-03 18:14:16 +03:00
util.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
uts_ns.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
vdso.c open_proc: don't print error twice 2016-11-12 11:06:00 +03:00