Closed aqjune closed 4 months ago
My first guess would be that Ubuntu 20.04 is just too old. Please retry with something newer.
Thanks @adrianreber, it worked on 24.04. If CAP_CHECKPOINT_RESTORE
is a new capability option of a newer Linux, I think that printing something like This linux does not unsupport CAP_CHECKPOINT_RESTORE
other than the setcap cap_checkpoint_restore+eip ...
command line could be an option.
Please close if resolved.
My concern was that it was printing a wrong diagnostic message, sorry - I think it should emit a different message than 'setcap ...' if the capability was not available. The issue is not resolved yet.
If your setcap is too old there is nothing CRIU can do.
@aqjune if you don't like the error message, pls open a pull request with the fix. We will be glad to accept it.
Description
When I try
criu dump
it requests that capability of CAP_SYS_ADMIN or CAP_CHECKPOINT_RESTORE must be given to criu, with an instruction showing how to usesetcap
. However, if I follow it, I am seeing the following error:This might not be a problem of criu (I found that criu's CI script is in fact using the same command), but was just wondering whether any further instruction could be given in the case, which might be helpful to beginners.
Describe the results you expected:
The
setcap
command is succesfully doneAdditional information you deem important (e.g. issue happens only occasionally):
CRIU logs and information:
criu 3.19
CRIU full dump/restore logs:
None
Output of `criu --version`:
``` Version: 3.19 ```
Output of `criu check --all`:
``` $ ~/criu-3.19/criu/criu check --all CRIU needs to have the CAP_SYS_ADMIN or the CAP_CHECKPOINT_RESTORE capability: setcap cap_checkpoint_restore+eip /home/aqjune/criu-3.19/criu/criu ```
Additional environment details: