From 9d5906c708bc5123377879bc0511ed5d7fe85852 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 27 Jul 2016 08:05:51 -0400 Subject: fixed faudit compile problem for non-intel platforms --- src/faudit/syscall.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/faudit/syscall.c') diff --git a/src/faudit/syscall.c b/src/faudit/syscall.c index bc28936c9..9924be00f 100644 --- a/src/faudit/syscall.c +++ b/src/faudit/syscall.c @@ -20,7 +20,9 @@ #include "faudit.h" #include #include +#if defined(__i386__) || defined(__x86_64__) #include +#endif #include extern int init_module(void *module_image, unsigned long len, const char *param_values); @@ -69,6 +71,7 @@ void syscall_helper(int argc, char **argv) { pivot_root(NULL, NULL); printf("\nUGLY: pivot_root syscall permitted.\n"); } +#if defined(__i386__) || defined(__x86_64__) else if (strcmp(argv[2], "iopl") == 0) { iopl(0L); printf("\nUGLY: iopl syscall permitted.\n"); @@ -77,6 +80,7 @@ void syscall_helper(int argc, char **argv) { ioperm(0, 0, 0); printf("\nUGLY: ioperm syscall permitted.\n"); } +#endif exit(0); } -- cgit v1.2.3-70-g09d2