Re: [RFC] c/r: prctl: Add ability to set new mm_struct::exe_file

From: Pavel Emelyanov
Date: Wed Feb 29 2012 - 10:23:30 EST


On 02/29/2012 07:16 PM, Cyrill Gorcunov wrote:
> Hi guys,
>
> at restore time we would like to have a way for /proc/pid/exe
> symlink recovering. So I thought extending prctl might be
> a good idea.
>
> Still maybe there some other good and 'right' way to do it,
> so I would like to gather opinions.

If using the prctl for this, then taking a given file descriptor
(with fcheck) instead of taking path and opening it in kernel is
better.

> Please review, thanks!
>
> Cyrill

Thanks,
Pavel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/