diff --git a/criu/cr-restore.c b/criu/cr-restore.c index aa42aa1368..0517385763 100644 --- a/criu/cr-restore.c +++ b/criu/cr-restore.c @@ -78,6 +78,7 @@ #include "string.h" #include "memfd.h" #include "timens.h" +#include "bpfmap.h" #include "parasite-syscall.h" #include "files-reg.h" @@ -295,6 +296,7 @@ static struct collect_image_info *cinfos_files[] = { &fanotify_mark_cinfo, &ext_file_cinfo, &memfd_cinfo, + &bpfmap_cinfo, }; /* These images are required to restore namespaces */ diff --git a/criu/files.c b/criu/files.c index 27004193a4..4a839b0470 100644 --- a/criu/files.c +++ b/criu/files.c @@ -1736,6 +1736,9 @@ static int collect_one_file(void *o, ProtobufCMessage *base, struct cr_img *i) case FD_TYPES__MEMFD: ret = collect_one_file_entry(fe, fe->memfd->id, &fe->memfd->base, &memfd_cinfo); break; + case FD_TYPES__BPFMAP: + ret = collect_one_file_entry(fe, fe->bpf->id, &fe->bpf->base, &bpfmap_cinfo); + break; } return ret;