[lxc-devel] [lxc/lxc] 88556f: handle hashed command socket names (v2)
GitHub
noreply at github.com
Tue Aug 26 14:46:49 UTC 2014
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 88556fd7560e3811f92108cb7eb51d41eb558724
https://github.com/lxc/lxc/commit/88556fd7560e3811f92108cb7eb51d41eb558724
Author: S.Çağlar Onur <caglar at 10ur.org>
Date: 2014-08-26 (Tue, 26 Aug 2014)
Changed paths:
M src/lxc/commands.c
M src/lxc/commands.h
M src/lxc/lxccontainer.c
Log Message:
-----------
handle hashed command socket names (v2)
With the new hashed command socket names (e85898415c), it's possible to
have something like below;
[caglar at qop:~/go/src/github.com/lxc/go-lxc(master)] cat /proc/net/unix | grep lxc
0000000000000000: 00000002 00000000 00010000 0001 01 53465 @lxc/d086e835c86f4b8d/command
[...]
list_active_containers reads /proc/net/unix to find all running
containers but this new format no longer includes the container name or
its lxcpath.
This patch introduces two new commands (LXC_CMD_GET_NAME and
LXC_CMD_GET_LXCPATH) and starts to use those in list_active_containers
call.
changes since v1:
- added sanity check proposed by Serge
Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
More information about the lxc-devel
mailing list