mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-30 05:21:57 +00:00
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>
14 lines
376 B
C
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__ */
|