mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 11:04:35 +00:00
Right now we state that CRIU works on 3.11 and above kernels and, at the same time, have support for a couple of new features like aio, tun, timerfd etc. available in later kernels. Since these new features do not break generic operations we do not require them in the kernel strictly. However, in the zdtm tests it's very important to know exactly what can and what cannot be tested. Right now this is done in a tough manner -- if the kernel is not 3.11 or criu check fails for _any_ reason we treat the kernel as being "bad" and throw out a set of tests. I propose to test some individual features and form the list of tests in a more fine-grained manner. This patch only fixes the AIO, mnt_id, tun and posix-timers tests. Next I will add checks and fixes for user-namespaces tests. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Acked-by: Andrew Vagin <avagin@parallels.com>
35 lines
967 B
C
35 lines
967 B
C
#ifndef __CR_CRTOOLS_H__
|
|
#define __CR_CRTOOLS_H__
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "list.h"
|
|
#include "asm/types.h"
|
|
#include "servicefd.h"
|
|
|
|
#define CR_FD_PERM (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
|
|
|
|
extern int check_img_inventory(void);
|
|
extern int write_img_inventory(void);
|
|
extern void kill_inventory(void);
|
|
|
|
#define LAST_PID_PATH "sys/kernel/ns_last_pid"
|
|
|
|
extern int cr_dump_tasks(pid_t pid);
|
|
extern int cr_pre_dump_tasks(pid_t pid);
|
|
extern int cr_restore_tasks(void);
|
|
extern int cr_show(int pid);
|
|
extern int convert_to_elf(char *elf_path, int fd_core);
|
|
extern int cr_check(void);
|
|
extern int cr_exec(int pid, char **opts);
|
|
extern int cr_dedup(void);
|
|
|
|
extern int restrict_uid(unsigned int uid, unsigned int gid);
|
|
struct proc_status_creds;
|
|
extern bool may_dump(struct proc_status_creds *);
|
|
struct _CredsEntry;
|
|
extern bool may_restore(struct _CredsEntry *);
|
|
extern bool cr_user_is_root(void);
|
|
extern int check_add_feature(char *arg);
|
|
|
|
#endif /* __CR_CRTOOLS_H__ */
|