procd: Replace strerror(errno) with %m.
[project/procd.git] / jail / seccomp.h
index 45eede7..24c1dd7 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
+#ifndef _JAIL_SECCOMP_H_
+#define _JAIL_SECCOMP_H_
+
+#include <stdio.h>
+#include <syslog.h>
 
 #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);
+
+#endif