diff options
author | Zeyad Yasser <zeyady98@gmail.com> | 2021-03-16 16:07:39 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2021-09-03 20:31:00 +0300 |
commit | ba882893c330b557f99fa6a23bb19c9d2c06e9f9 (patch) | |
tree | e6be30b182a9bb0cd72ef8f8505e1911ef81e3d3 /images | |
parent | e3c9c3429a58cd5aedeec0dc703e4b44870799f8 (diff) |
cr-check: add ability to check if pidfd_store feature is supported
pidfd_store which will be used for reliable pidfd based pid reuse
detection for RPC clients requires two recent syscalls (pidfd_open
and pidfd_getfd).
We allow checking if pidfd_store is supported using:
1. CLI: criu check --feature pidfd_store
2. RPC: CRIU_REQ_TYPE__FEATURE_CHECK and set pidfd_store to
true in the "features" field of the request
Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
Diffstat (limited to 'images')
-rw-r--r-- | images/rpc.proto | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/images/rpc.proto b/images/rpc.proto index e83f2c9f8..f667d136c 100644 --- a/images/rpc.proto +++ b/images/rpc.proto @@ -174,6 +174,7 @@ enum criu_req_type { message criu_features { optional bool mem_track = 1; optional bool lazy_pages = 2; + optional bool pidfd_store = 3; } /* |