From 30b1ba1d1daec4907e89ac9416328066f0189021 Mon Sep 17 00:00:00 2001 From: Dhanuka Warusadura Date: Tue, 15 Aug 2023 20:36:55 +0530 Subject: [PATCH] images: protobuf definitions for memfd_secret Adds protobuf definitions needed to checkpoint and restore memfd_secret fd. Signed-off-by: Dhanuka Warusadura --- images/memfd-secret.proto | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 images/memfd-secret.proto diff --git a/images/memfd-secret.proto b/images/memfd-secret.proto new file mode 100644 index 0000000000..3eb30c5578 --- /dev/null +++ b/images/memfd-secret.proto @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: MIT + +syntax = "proto2"; + +import "opts.proto"; +import "fown.proto"; + +message memfd_secret_file_entry { + required uint32 id = 1; + required uint32 flags = 2 [(criu).flags = "rfile.flags"]; + required uint64 pos = 3; + required fown_entry fown = 4; + required uint32 inode_id = 5; +}; + +message memfd_secret_inode_entry { + required uint32 uid = 1; + required uint32 gid = 2; + required uint64 size = 3; + required uint32 secretmem_id = 4; + required uint64 inode_id = 5; +};