lkml.org 
[lkml]   [2018]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [v2] prctl: Deprecate non PR_SET_MM_MAP operations
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?

\
 
 \ /
  Last update: 2018-04-20 09:03    [W:0.196 / U:10.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site