[lxc-devel] [lxc/lxc] 93525c: use PR_SET_MM_MAP instead of PR_SET_MM
GitHub
noreply at github.com
Fri Nov 6 19:48:45 UTC 2015
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 93525c00c76b2804c46cf3c275d610ebe71cb4be
https://github.com/lxc/lxc/commit/93525c00c76b2804c46cf3c275d610ebe71cb4be
Author: Tycho Andersen <tycho.andersen at canonical.com>
Date: 2015-11-06 (Fri, 06 Nov 2015)
Changed paths:
M src/lxc/utils.c
Log Message:
-----------
use PR_SET_MM_MAP instead of PR_SET_MM
PR_SET_MM_MAP can be called as non-root, which we are in the unprivileged
(or nested) case.
Also, let's not do the strcpy() for the new cmdline until after we're sure
the prctl succeeded. This means that even if it does fail, we won't
mutilate the command line like we did before, it just won't be as pretty.
v2: remember to chop off bits of the string that are too long
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
More information about the lxc-devel
mailing list