Skip to content

Commit

Permalink
images: protobuf definitions for memfd_secret
Browse files Browse the repository at this point in the history
Adds protobuf definitions needed to checkpoint and restore
memfd_secret fd.

Signed-off-by: Dhanuka Warusadura <[email protected]>
  • Loading branch information
warusadura committed Oct 23, 2023
1 parent c474816 commit 30b1ba1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions images/memfd-secret.proto
Original file line number Diff line number Diff line change
@@ -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;
};

0 comments on commit 30b1ba1

Please sign in to comment.