mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
Also define some constants for people who don't have them in their headers. Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
32 lines
672 B
C
32 lines
672 B
C
#ifndef __CR_SECCOMP_H__
|
|
#define __CR_SECCOMP_H__
|
|
|
|
#include <linux/seccomp.h>
|
|
#include <linux/filter.h>
|
|
|
|
#include "protobuf/core.pb-c.h"
|
|
|
|
#ifndef SECCOMP_MODE_DISABLED
|
|
#define SECCOMP_MODE_DISABLED 0
|
|
#endif
|
|
|
|
#ifndef SECCOMP_MODE_STRICT
|
|
#define SECCOMP_MODE_STRICT 1
|
|
#endif
|
|
|
|
#ifndef SECCOMP_MODE_FILTER
|
|
#define SECCOMP_MODE_FILTER 2
|
|
#endif
|
|
|
|
#ifndef SECCOMP_SET_MODE_FILTER
|
|
#define SECCOMP_SET_MODE_FILTER 1
|
|
#endif
|
|
|
|
#ifndef SECCOMP_FILTER_FLAG_TSYNC
|
|
#define SECCOMP_FILTER_FLAG_TSYNC 1
|
|
#endif
|
|
|
|
extern int collect_seccomp_filters(void);
|
|
extern int prepare_seccomp_filters(void);
|
|
extern int seccomp_filters_get_rst_pos(CoreEntry *item, int *count, unsigned long *pos);
|
|
#endif
|