projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
preload-seccomp: Use proper log level for error messages
[project/procd.git]
/
jail
/
seccomp.h
diff --git
a/jail/seccomp.h
b/jail/seccomp.h
index
0992b79
..
24c1dd7
100644
(file)
--- a/
jail/seccomp.h
+++ b/
jail/seccomp.h
@@
-13,10
+13,17
@@
#ifndef _JAIL_SECCOMP_H_
#define _JAIL_SECCOMP_H_
#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 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);
int install_syscall_filter(const char *argv, const char *file);