]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
unshare the utsname in all the cases
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 12 Jun 2009 14:02:14 +0000 (16:02 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 12 Jun 2009 14:02:14 +0000 (16:02 +0200)
commit1ea6db2923761b45b4400c32810b17f58785057a
tree87ed170d1a4c8e14a6b20e884d7ad50e0643a4e9
parentddceb1f9fa9cedec49f7cd4c04a640cf3a529b87
unshare the utsname in all the cases

The current code implies we have to define a utsname in order
to unshare it. This problematic in case of system container because
we want them to set their hostname. As the utsname namespace is
a COW, we can safely unshare it in all the cases.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/start.c