[lxc-devel] [lxc/lxc] 565e57: userns_exec_1: catch errors in the spawned process...

GitHub noreply at github.com
Wed Jan 29 15:57:00 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 565e571c8f88aeef8c23bf79479b0fde3c8e069b
      https://github.com/lxc/lxc/commit/565e571c8f88aeef8c23bf79479b0fde3c8e069b
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-29 (Wed, 29 Jan 2014)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  userns_exec_1: catch errors in the spawned process.

lxc_map_ids can call system(3), which on error from the
spawned process returns > 0.  No path should return > 0
when it meant success.  So check the lxc_map_ids() value
to be != rather than just < 0.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list