projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: fix service_handle_event array
[project/procd.git]
/
jail
/
seccomp.h
diff --git
a/jail/seccomp.h
b/jail/seccomp.h
index c44a607271f502398ad45a1a0c4a0b86a164c2b7..24c1dd7d3363cc475a21815c0324bedcaf547c7a 100644
(file)
--- a/
jail/seccomp.h
+++ b/
jail/seccomp.h
@@
-10,10
+10,21
@@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
* 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 { \
#define INFO(fmt, ...) do { \
- syslog(0,"preload-seccomp: "fmt, ## __VA_ARGS__); \
+ 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);
fprintf(stderr,"preload-seccomp: "fmt, ## __VA_ARGS__); \
} while (0)
int install_syscall_filter(const char *argv, const char *file);
+
+#endif