Re: Does vdso_install attempt to re-compile objects under root privilege?

From: Andy Lutomirski
Date: Tue Apr 23 2019 - 14:47:50 EST


On Thu, Apr 18, 2019 at 1:08 AM Masahiro Yamada
<yamada.masahiro@xxxxxxxxxxxxx> wrote:
>
> Hi.
>
> I have a question about 'vdso_install'.
>
>
> In my understanding, vdso is embedded in the kernel.
> In addition, you can run 'make vdso_install'
> to install an unstripped version of vdso.
> (Mainly, debugging purpose?)
>
> By default, 'make vdso_install' will install it to
> /lib/modules/$(uname -r)/vdso/.
>
>
> Since that directly is owned by root,
> 'make vdso_install' could potentially be
> executed by root, isn't it?
>
>
> Currently, 'vdso_install' depends on vdso,
> so it may cause recompilation of objects
> in the source tree.

Hmm. I suppose an alternative would be for vdso_install to fail if
the vdso isn't built?

What's the ideal outcome here?