Debian Codegraph @

crit/images/fdinfo.proto

raw
1 // SPDX-License-Identifier: MIT
2
3 syntax = "proto2";
4
5 import "regfile.proto";
6 import "sk-inet.proto";
7 import "ns.proto";
8 import "packet-sock.proto";
9 import "sk-netlink.proto";
10 import "eventfd.proto";
11 import "eventpoll.proto";
12 import "signalfd.proto";
13 import "tun.proto";
14 import "timerfd.proto";
15 import "fsnotify.proto";
16 import "ext-file.proto";
17 import "sk-unix.proto";
18 import "fifo.proto";
19 import "pipe.proto";
20 import "tty.proto";
21 import "memfd.proto";
22 import "bpfmap-file.proto";
23
24 enum fd_types {
25 UND = 0;
26 REG = 1;
27 PIPE = 2;
28 FIFO = 3;
29 INETSK = 4;
30 UNIXSK = 5;
31 EVENTFD = 6;
32 EVENTPOLL = 7;
33 INOTIFY = 8;
34 SIGNALFD = 9;
35 PACKETSK = 10;
36 TTY = 11;
37 FANOTIFY = 12;
38 NETLINKSK = 13;
39 NS = 14;
40 TUNF = 15;
41 EXT = 16;
42 TIMERFD = 17;
43 MEMFD = 18;
44 BPFMAP = 19;
45
46 /* Any number above the real used. Not stored to image */
47 CTL_TTY = 65534;
48 AUTOFS_PIPE = 65535;
49 }
50
51 message fdinfo_entry {
52 required uint32 id = 1;
53 required uint32 flags = 2;
54 required fd_types type = 3;
55 required uint32 fd = 4;
56 optional string xattr_security_selinux = 5;
57 }
58
59 message file_entry {
60 required fd_types type = 1;
61 required uint32 id = 2;
62 optional reg_file_entry reg = 3;
63 optional inet_sk_entry isk = 4;
64 optional ns_file_entry nsf = 5;
65 optional packet_sock_entry psk = 6;
66 optional netlink_sk_entry nlsk = 7;
67 optional eventfd_file_entry efd = 8;
68 optional eventpoll_file_entry epfd = 9;
69 optional signalfd_entry sgfd = 10;
70 optional tunfile_entry tunf = 11;
71 optional timerfd_entry tfd = 12;
72 optional inotify_file_entry ify = 13;
73 optional fanotify_file_entry ffy = 14;
74 optional ext_file_entry ext = 15;
75 optional unix_sk_entry usk = 16;
76 optional fifo_entry fifo = 17;
77 optional pipe_entry pipe = 18;
78 optional tty_file_entry tty = 19;
79 optional memfd_file_entry memfd = 20;
80 optional bpfmap_file_entry bpf = 21;
81 }