lkml.org 
[lkml]   [2011]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] prctl: Add PR_ codes to restore vDSO and tune up mm_struct entires
Hello, Cyrill.

On Thu, Nov 24, 2011 at 04:00:51PM +0400, Cyrill Gorcunov wrote:
> + case PR_SETUP_VDSO_AT:
> + if (arg3 | arg4 | arg5)
> + return -EINVAL;
> +
> + if (!capable(CAP_SYS_ADMIN))
> + return -EPERM;
> +
> +#ifdef ARCH_HAS_SETUP_ADDITIONAL_PAGES
> + error = arch_setup_additional_pages_at((void *)arg2);
> +#else
> + error = -ENOSYS;
> +#endif
> + break;

Hmmm... I'm not sure this is the best approach. vdso is supposed to
be able to be dependent on binprm too, so the proposed solution could
work but I'm not sure whether it's a good one. For now, can't we just
copy the vdso and unmap it at the orignal address?

Thanks.

--
tejun


\
 
 \ /
  Last update: 2011-11-28 23:59    [W:0.076 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site