Allow SECCOMP_KILL_POLICY to be overwritten at build.

This commit is contained in:
Joris Vink 2019-10-23 15:01:31 +02:00
parent 99763d520b
commit f637d617aa
1 changed files with 2 additions and 0 deletions

View File

@ -35,11 +35,13 @@
#include "python_api.h"
#endif
#if !defined(SECCOMP_KILL_POLICY)
#if defined(KORE_DEBUG)
#define SECCOMP_KILL_POLICY SECCOMP_RET_TRAP
#else
#define SECCOMP_KILL_POLICY SECCOMP_RET_KILL
#endif
#endif
/*
* The bare minimum to be able to run kore. These are added last and can