[CRIU] [PATCH 1/5] restore: don't restore task with uid==0, if client's uid!=0

Pavel Emelyanov xemul at parallels.com
Mon Sep 30 07:48:22 PDT 2013


On 09/30/2013 03:06 PM, Ruslan Kuprieiev wrote:
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> 


> +static int check_uid(int uid)
> +{
> +	if (cr_service_client) {
> +		if (cr_service_client->uid != 0 && uid == 0)

The check should be the same as for dump request.

> +			return -1;
> +	}
> +
> +	return 0;
> +}
> +



More information about the CRIU mailing list