X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=jail%2Fseccomp.h;h=24c1dd7d3363cc475a21815c0324bedcaf547c7a;hp=0992b791723e7a192f04a5e09f3817f8dd72b113;hb=7f9b174026a318862d6b2073e81ef62c82a9d18e;hpb=3ea522bced7352e524b6d6d46f3a1c796c616704 diff --git a/jail/seccomp.h b/jail/seccomp.h index 0992b79..24c1dd7 100644 --- a/jail/seccomp.h +++ b/jail/seccomp.h @@ -13,10 +13,17 @@ #ifndef _JAIL_SECCOMP_H_ #define _JAIL_SECCOMP_H_ +#include +#include + #define INFO(fmt, ...) do { \ syslog(LOG_INFO,"preload-seccomp: "fmt, ## __VA_ARGS__); \ fprintf(stderr,"preload-seccomp: "fmt, ## __VA_ARGS__); \ } while (0) +#define ERROR(fmt, ...) do { \ + syslog(LOG_ERR,"preload-seccomp: "fmt, ## __VA_ARGS__); \ + fprintf(stderr,"preload-seccomp: "fmt, ## __VA_ARGS__); \ + } while (0) int install_syscall_filter(const char *argv, const char *file);