mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-26 03:25:30 +00:00
criu/testing: caps00: don't hang if PR_CAPBSET_DROP fails
Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
40ae0fa35a
commit
0affd5bc19
1 changed files with 3 additions and 2 deletions
|
|
@ -64,8 +64,9 @@ int main(int argc, char **argv)
|
|||
struct cap_data data_2[_LINUX_CAPABILITY_U32S_3];
|
||||
|
||||
if (prctl(PR_CAPBSET_DROP, CAP_SETPCAP, 0, 0, 0)) {
|
||||
err("PR_CAPBSET_DROP");
|
||||
return -1;
|
||||
res = 'x';
|
||||
task_waiter_complete_current(&t);
|
||||
goto bad;
|
||||
}
|
||||
|
||||
hdr.version = _LINUX_CAPABILITY_VERSION_3;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue