criu/include/cr-service.h
Pavel Emelyanov 9753501297 rpc: Introduce CLI's --action-script analogue
Service shouldn't call client provided scripts, as it
creates a security issue (client may be unpriviledged,
while the service is).

In order to let caller do what it would normally do with
criu-scripts, make criu notify it about scripts. Caller
then do whatever it needs and responds back.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-01-30 15:58:45 +04:00

14 lines
376 B
C

#ifndef __CR_SERVICE_H__
#define __CR_SERVICE_H__
#include "protobuf/rpc.pb-c.h"
extern int cr_service(bool deamon_mode);
extern int send_criu_dump_resp(int socket_fd, bool success, bool restored);
extern int send_criu_rpc_script(char *name, int arg);
extern struct _cr_service_client *cr_service_client;
extern unsigned int service_sk_ino;
#endif /* __CR_SERVICE_H__ */