Debian Codegraph @

crit/images/criu-core.proto

raw
1 // SPDX-License-Identifier: MIT
2
3 syntax = "proto2";
4
5 import "core-x86.proto";
6 import "core-arm.proto";
7 import "core-aarch64.proto";
8 import "core-ppc64.proto";
9 import "core-s390.proto";
10 import "core-mips.proto";
11
12 import "rlimit.proto";
13 import "timer.proto";
14 import "creds.proto";
15 import "criu-sa.proto";
16 import "siginfo.proto";
17 import "rseq.proto";
18
19 import "opts.proto";
20
21 /*
22 * These match the SECCOMP_MODE_* flags from <linux/seccomp.h>.
23 */
24 enum seccomp_mode {
25 disabled = 0;
26 strict = 1;
27 filter = 2;
28 };
29
30 message task_core_entry {
31 required uint32 task_state = 1 [(criu).dict = "gen"];
32 required uint32 exit_code = 2;
33
34 required uint32 personality = 3;
35 required uint32 flags = 4;
36 required uint64 blk_sigset = 5[(criu).hex = true];
37
38 required string comm = 6;
39
40 optional task_timers_entry timers = 7;
41 optional task_rlimits_entry rlimits = 8;
42
43 /* This is deprecated, should be per-thread */
44 optional uint32 cg_set = 9;
45
46 optional signal_queue_entry signals_s = 10;
47
48 /* These two are deprecated, should be per-thread */
49 optional seccomp_mode old_seccomp_mode = 11;
50 optional uint32 old_seccomp_filter = 12;
51
52 optional uint32 loginuid = 13;
53
54 optional int32 oom_score_adj = 14;
55 repeated sa_entry sigactions = 15;
56 // Reserved for tty inheritance
57 //optional int32 tty_nr = 16;
58 //optional int32 tty_pgrp = 17;
59
60 optional bool child_subreaper = 18;
61 // Reserved for container relative start time
62 //optional uint64 start_time = 19;
63 optional uint64 blk_sigset_extended = 20[(criu).hex = true];
64
65 optional uint32 stop_signo = 21;
66 }
67
68 message task_kobj_ids_entry {
69 required uint32 vm_id = 1;
70 required uint32 files_id = 2;
71 required uint32 fs_id = 3;
72 required uint32 sighand_id = 4;
73
74 optional uint32 pid_ns_id = 5;
75 optional uint32 net_ns_id = 6;
76 optional uint32 ipc_ns_id = 7;
77 optional uint32 uts_ns_id = 8;
78 optional uint32 mnt_ns_id = 9;
79 optional uint32 user_ns_id = 10;
80 optional uint32 cgroup_ns_id = 11;
81 optional uint32 time_ns_id = 12;
82 }
83
84 message thread_sas_entry {
85 required uint64 ss_sp = 1;
86 required uint64 ss_size = 2;
87 required uint32 ss_flags = 3;
88 }
89
90 message thread_core_entry {
91 required uint64 futex_rla = 1;
92 required uint32 futex_rla_len = 2;
93 optional sint32 sched_nice = 3;
94 optional uint32 sched_policy = 4;
95 optional uint32 sched_prio = 5;
96 optional uint64 blk_sigset = 6;
97 optional thread_sas_entry sas = 7;
98 optional uint32 pdeath_sig = 8;
99
100 optional signal_queue_entry signals_p = 9;
101 optional creds_entry creds = 10;
102
103 optional seccomp_mode seccomp_mode = 11;
104 optional uint32 seccomp_filter = 12;
105
106 optional string comm = 13;
107 optional uint64 blk_sigset_extended = 14;
108 optional rseq_entry rseq_entry = 15;
109 optional uint32 cg_set = 16;
110 }
111
112 message task_rlimits_entry {
113 repeated rlimit_entry rlimits = 1;
114 };
115
116 message core_entry {
117 enum march {
118 UNKNOWN = 0;
119 X86_64 = 1;
120 ARM = 2;
121 AARCH64 = 3;
122 PPC64 = 4;
123 S390 = 5;
124 MIPS = 6;
125 }
126
127 required march mtype = 1;
128 optional thread_info_x86 thread_info = 2;
129 optional thread_info_arm ti_arm = 6;
130 optional thread_info_aarch64 ti_aarch64 = 8;
131 optional thread_info_ppc64 ti_ppc64 = 9;
132 optional thread_info_s390 ti_s390 = 10;
133 optional thread_info_mips ti_mips = 11;
134
135 optional task_core_entry tc = 3;
136 optional task_kobj_ids_entry ids = 4;
137 optional thread_core_entry thread_core = 5;
138 }