diff --git a/kernel/pid.c b/kernel/pid.c index 15c80e211fb2..b7adaef4889b 100644 --- a/kernel/pid.c +++ b/kernel/pid.c @@ -201,7 +201,7 @@ struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, if (tid != 1 && !tmp->child_reaper) goto out_free; retval = -EPERM; - if (!ns_capable(tmp->user_ns, CAP_SYS_ADMIN)) + if (!checkpoint_restore_ns_capable(tmp->user_ns)) goto out_free; set_tid_size--; }