On Fri, Apr 20, 2018 at 11:38:09AM +0900, Sergey Senozhatsky wrote:
> On (04/05/18 21:26), Cyrill Gorcunov wrote:
> [..]
> > -
> >  #ifdef CONFIG_CHECKPOINT_RESTORE
> >     if (opt == PR_SET_MM_MAP || opt == PR_SET_MM_MAP_SIZE)
> >             return prctl_set_mm_map(opt, (const void __user *)addr, arg4);
> >  #endif
> >  
> > -   if (!capable(CAP_SYS_RESOURCE))
> > -           return -EPERM;
> > -
> > -   if (opt == PR_SET_MM_EXE_FILE)
> > -           return prctl_set_mm_exe_file(mm, (unsigned int)addr);
> > -
> > -   if (opt == PR_SET_MM_AUXV)
> > -           return prctl_set_auxv(mm, addr, arg4);
> 
> Then validate_prctl_map() and prctl_set_mm_exe_file() can be moved
> under CONFIG_CHECKPOINT_RESTORE ifdef.

I don't mind. Could you please make the patch on top of linux-next?

Reply via email to