]> xenbits.xensource.com Git - libvirt.git/commit
Add JSON serialization of virNetSocketPtr objects for process re-exec()
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 9 Aug 2012 11:54:54 +0000 (12:54 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 16 Oct 2012 14:45:55 +0000 (15:45 +0100)
commitc298145344e7181827638ea37e28e32a52db6237
tree72247811b6eb342b9237a7e9bb3e2efa079f79c1
parent8057c04e8d8ed4b371d3eb67ade34ef7ff55e08a
Add JSON serialization of virNetSocketPtr objects for process re-exec()

Add two new APIs virNetSocketNewPostExecRestart and
virNetSocketPreExecRestart which allow a virNetSocketPtr
object to be created from a JSON object and saved to a
JSON object, for the purpose of re-exec'ing a process.

As well as saving the state in JSON format, the second
method will disable the O_CLOEXEC flag so that the open
file descriptors are preserved across the process re-exec()

Since it is not possible to serialize SASL or TLS encryption
state, an error will be raised if attempting to perform
serialization on non-raw sockets

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/libvirt_private.syms
src/rpc/virnetsocket.c
src/rpc/virnetsocket.h