]> git.ipfire.org Git - thirdparty/lxc.git/commit
command socket: use hash if needed
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 9 Aug 2014 00:28:18 +0000 (00:28 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 18 Aug 2014 03:38:56 +0000 (23:38 -0400)
commite85898415c28e0467aed3851541e70678ad1688e
tree001dfd7f586dabc25d39011b228b206d5a2a5ec4
parentda8c55e6ec2dec51d4335937e9f3af94fb200efa
command socket: use hash if needed

The container command socket is an abstract unix socket containing
the lxcpath and container name.  Those can be too long.  In that case,
use the hash of the lxcpath and lxcname.  Continue to use the path and
name if possible to avoid any back compat issues.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/commands.c