[CRIU] [PATCH v4 04/15] unix: Link all sockets in unix_sockets list

Pavel Emelyanov xemul at virtuozzo.com
Wed Nov 23 01:01:50 PST 2016


On 06/01/2016 07:02 PM, Kirill Tkhai wrote:
> List "unix_sockets" is used to link external sockets.
> Change this, to link all unix sockets there. To differ
> really external sockets in fix_external_unix_sockets(),
> we may check for socket's already_dumped value.
> 
> This may be useful to traverse over all unix sockets
> in a namespace.
> 
> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>

Heh :) This patch results in a weird effect. Look:

	# ./test/zdtm.py run -t zdtm/static/env00 -f h --keep-img always
	...
	# ls dump/zdtm/static/env00/39/1/
	...
	unixsk.img

The problem is that the amount of unix sockets involved in env00 test is zero,
but for some reason sk-unix.c decides to write into images one external unix sk
entry which is not referenced by anybody.

The patch id is c085d6af6d5, merged into 2.4.

-- Pavel


More information about the CRIU mailing list