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 15, 2023
1 parent 711775f commit 48aab47
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 48aab47

Please sign in to comment.