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 Aug 31, 2023
1 parent a652c68 commit 5b508a8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions images/memfd-secret.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: MIT

syntax = "proto2";

import "fown.proto";

message memfd_secret_file_entry {
required uint32 id = 1;
required uint32 flags = 2;
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 5b508a8

Please sign in to comment.