From d0caedd190afef82dfd5fdd890f35373addbdf4e Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Mon, 14 Nov 2016 16:05:36 +0300 Subject: [PATCH] compel: Hide parasite_thread_ctl Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- compel/include/infect-priv.h | 9 +++++++++ compel/include/uapi/infect.h | 9 +-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/compel/include/infect-priv.h b/compel/include/infect-priv.h index 2ba85cf47..da56f0804 100644 --- a/compel/include/infect-priv.h +++ b/compel/include/infect-priv.h @@ -5,6 +5,11 @@ #define BUILTIN_SYSCALL_SIZE 8 +struct thread_ctx { + k_rtsigset_t sigmask; + user_regs_struct_t regs; +}; + /* parasite control block */ struct parasite_ctl { int rpid; /* Real pid of the victim */ @@ -36,6 +41,10 @@ struct parasite_ctl { struct parasite_blob_desc pblob; }; +struct parasite_thread_ctl { + struct thread_ctx th; +}; + #define MEMFD_FNAME "CRIUMFD" #define MEMFD_FNAME_SZ sizeof(MEMFD_FNAME) diff --git a/compel/include/uapi/infect.h b/compel/include/uapi/infect.h index f0520ff72..28f0c469b 100644 --- a/compel/include/uapi/infect.h +++ b/compel/include/uapi/infect.h @@ -37,14 +37,7 @@ extern int compel_unseize_task(pid_t pid, int orig_state, int state); #define TASK_ZOMBIE 0x6 struct parasite_ctl; -struct thread_ctx { - k_rtsigset_t sigmask; - user_regs_struct_t regs; -}; - -struct parasite_thread_ctl { - struct thread_ctx th; -}; +struct parasite_thread_ctl; extern struct parasite_ctl *compel_prepare(int pid); extern int compel_infect(struct parasite_ctl *ctl, unsigned long nr_threads, unsigned long args_size);