| 1 |
// SPDX-License-Identifier: MIT |
| 2 |
|
| 3 |
syntax = "proto2"; |
| 4 |
|
| 5 |
import "opts.proto"; |
| 6 |
import "fown.proto"; |
| 7 |
import "sk-opts.proto"; |
| 8 |
|
| 9 |
message file_perms_entry { |
| 10 |
required uint32 mode = 1; |
| 11 |
required uint32 uid = 2; |
| 12 |
required uint32 gid = 3; |
| 13 |
} |
| 14 |
|
| 15 |
message unix_sk_entry { |
| 16 |
/* |
| 17 |
* Few words about why we need both -- id and ino. |
| 18 |
* |
| 19 |
* The former one is used to link file descriptor from |
| 20 |
* fdinfo image with the unix_sk_entry that should be |
| 21 |
* opened under it. |
| 22 |
* |
| 23 |
* The latter one ties together unix peers -- the peer |
| 24 |
* member on this structure is the ino one of its peer |
| 25 |
* and simetimes vise-versa. |
| 26 |
*/ |
| 27 |
required uint32 id = 1; |
| 28 |
required uint32 ino = 2; |
| 29 |
required uint32 type = 3 [(criu).dict = "sk"]; |
| 30 |
required uint32 state = 4 [(criu).dict = "sk"]; |
| 31 |
required uint32 flags = 5 [(criu).hex = true]; |
| 32 |
required uint32 uflags = 6 [(criu).hex = true]; |
| 33 |
required uint32 backlog = 7; |
| 34 |
required uint32 peer = 8; |
| 35 |
required fown_entry fown = 9; |
| 36 |
required sk_opts_entry opts = 10; |
| 37 |
|
| 38 |
/* |
| 39 |
* Abstract name may contain \0 at any point, |
| 40 |
* so we need to carry it as byte sequence... |
| 41 |
*/ |
| 42 |
required bytes name = 11 [(criu).conv = "unix_name"]; |
| 43 |
|
| 44 |
optional sk_shutdown shutdown = 12; |
| 45 |
|
| 46 |
optional file_perms_entry file_perms = 13; |
| 47 |
|
| 48 |
/* |
| 49 |
* Relative socket name may have prefix. |
| 50 |
*/ |
| 51 |
optional string name_dir = 14; |
| 52 |
optional bool deleted = 15; |
| 53 |
|
| 54 |
optional uint32 ns_id = 16; |
| 55 |
optional sint32 mnt_id = 17 [default = -1]; |
| 56 |
/* Please, don't use field with number 18. */ |
| 57 |
} |