[CRIU] [PATCH v2] restore: Fetch mmap_minimal_address runtime
Cyrill Gorcunov
gorcunov at virtuozzo.com
Wed Dec 7 06:43:14 PST 2016
On Wed, Dec 07, 2016 at 05:42:44PM +0300, Pavel Emelyanov wrote:
> On 12/07/2016 03:43 PM, Cyrill Gorcunov wrote:
> > From: Cyrill Gorcunov <gorcunov at virtuozzo.com>
> >
> > We assume that mmap_minimal_address with non-default
> > setting is not widespread but it's not true. Instead
> > lets fetch this setting runtime. For speed sake the value
> > is cached.
> >
> > Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
> > ---
> > +
> > + fd = open(path, O_RDONLY);
>
> Please, use sysctl_op engine for sys-controls.
This will require more rework, but fine, will do once
time permit.
More information about the CRIU
mailing list