mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
caps: Print error message on size mismatch
So when we fail print error thus a user would know where exactly it failed. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> CC: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
cbf0ba9f48
commit
78ced79e15
@@ -1481,8 +1481,12 @@ static int prepare_creds(int pid, struct task_restore_core_args *args)
|
||||
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (!verify_cap_size(ce))
|
||||
if (!verify_cap_size(ce)) {
|
||||
pr_err("Caps size mismatch %d %d %d %d\n",
|
||||
(int)ce->n_cap_inh, (int)ce->n_cap_eff,
|
||||
(int)ce->n_cap_prm, (int)ce->n_cap_bnd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
args->creds = *ce;
|
||||
args->creds.cap_inh = args->cap_inh;
|
||||
|
Reference in New Issue
Block a user