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