summaryrefslogtreecommitdiffstats
path: root/jail
diff options
context:
space:
mode:
Diffstat (limited to 'jail')
-rw-r--r--jail/elf.c14
-rw-r--r--jail/jail.c10
-rw-r--r--jail/log.h1
3 files changed, 1 insertions, 24 deletions
diff --git a/jail/elf.c b/jail/elf.c
index c198599..cbb3051 100644
--- a/jail/elf.c
+++ b/jail/elf.c
@@ -12,33 +12,19 @@
*/
#define _GNU_SOURCE
-#include <sys/syscall.h>
#include <sys/mman.h>
-#include <sys/utsname.h>
-#include <sys/types.h>
-#include <sys/wait.h>
#include <stdlib.h>
#include <unistd.h>
-#include <sys/syscall.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <values.h>
-#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <syslog.h>
#include <libgen.h>
#include <glob.h>
#include <elf.h>
-#include <libubox/avl.h>
-#include <libubox/avl-cmp.h>
#include <libubox/utils.h>
-#include <libubox/list.h>
-#include <libubox/uloop.h>
#include "elf.h"
diff --git a/jail/jail.c b/jail/jail.c
index 3d0830e..40b7558 100644
--- a/jail/jail.c
+++ b/jail/jail.c
@@ -12,12 +12,6 @@
*/
#define _GNU_SOURCE
-#include <sys/syscall.h>
-#include <sys/mman.h>
-#include <sys/utsname.h>
-#include <sys/types.h>
-#include <sys/syscall.h>
-#include <sys/types.h>
#include <sys/mount.h>
#include <sys/prctl.h>
#include <sys/wait.h>
@@ -30,16 +24,12 @@
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <syslog.h>
#include <libgen.h>
-#include <glob.h>
-#include <elf.h>
#include <sched.h>
#include "elf.h"
#include "capabilities.h"
-#include <libubox/utils.h>
#include <libubox/list.h>
#include <libubox/uloop.h>
diff --git a/jail/log.h b/jail/log.h
index f8590b3..b1d201e 100644
--- a/jail/log.h
+++ b/jail/log.h
@@ -12,6 +12,7 @@
*/
extern int debug;
+#include <syslog.h>
#define INFO(fmt, ...) do { \
printf("jail: "fmt, ## __VA_ARGS__); \