criu/images/sk-packet.proto
Andrei Vagin 832801cd81 netlink: dump and restore ucred-s for netlink messages
ucred in a netlink message contains the same pid and
it doesn't metter from which pidns it is read.

Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@virtuozzo.com>

(cherry picked from commit 66f8f7b2ae51a2cef4044df478389137735e1d6e)
Ahmed Elaidy:
- dropped the ENOBUFS bits (SK_QUEUE_TRACK_ENOBUFS and the int *val
  out-parameter): they belong to "netlink: save and generate ENOBUFS
  at restore", which needs a non-upstream kernel extension and is
  intentionally not ported.
- SK_QUEUE_DUMP_ADDR / the int flags signature come from the preceding
  "sk-queue: use flags in dump_sk_queue" cherry-pick rather than being
  glued in here.
Signed-off-by: Ahmed Elaidy <elaidya225@gmail.com>
Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>
2026-07-14 11:40:40 +02:00

23 lines
471 B
Protocol Buffer

// SPDX-License-Identifier: MIT
syntax = "proto2";
message scm_entry {
required uint32 type = 1;
repeated uint32 rights = 2;
}
message sk_ucred_entry {
required uint32 uid = 1;
required uint32 gid = 2;
required uint32 pid = 3;
}
message sk_packet_entry {
required uint32 id_for = 1;
required uint32 length = 2;
// Reserved for message address
// optional bytes addr = 3;
repeated scm_entry scm = 4;
optional sk_ucred_entry ucred = 128;
}