diff options
Diffstat (limited to 'jail')
-rw-r--r-- | jail/elf.c | 14 | ||||
-rw-r--r-- | jail/jail.c | 10 | ||||
-rw-r--r-- | jail/log.h | 1 |
3 files changed, 1 insertions, 24 deletions
@@ -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> @@ -12,6 +12,7 @@ */ extern int debug; +#include <syslog.h> #define INFO(fmt, ...) do { \ printf("jail: "fmt, ## __VA_ARGS__); \ |