You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 use setcap. However, if I follow it, I am seeing the following error:
$ ~/criu-3.19/criu/criu dump -t 31058 -vvv -o dump.log --unprivileged && echo OK
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
(00.000000) Effective capability 40 missing
(00.000000) Effective capability 21 missing
$ setcap cap_checkpoint_restore+eip /home/aqjune/criu-3.19/criu/criu
fatal error: Invalid argument
usage: setcap [-q] [-v] [-n <rootid>] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
Note <filename> must be a regular (non-symlink) file.
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 done
Additional information you deem important (e.g. issue happens only occasionally):
$ ~/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:
The text was updated successfully, but these errors were encountered:
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.
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.
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`:
Output of `criu check --all`:
Additional environment details:
The text was updated successfully, but these errors were encountered: