Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 93525c00c76b2804c46cf3c275d610ebe71cb4be https://github.com/lxc/lxc/commit/93525c00c76b2804c46cf3c275d610ebe71cb4be Author: Tycho Andersen <tycho.ander...@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.ander...@canonical.com> Acked-by: Serge E. Hallyn <serge.hal...@ubuntu.com>
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel