aboutsummaryrefslogtreecommitdiffstats
path: root/src/faudit/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/faudit/syscall.c')
-rw-r--r--src/faudit/syscall.c4
1 files changed, 4 insertions, 0 deletions
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 @@
20#include "faudit.h" 20#include "faudit.h"
21#include <sys/ptrace.h> 21#include <sys/ptrace.h>
22#include <sys/swap.h> 22#include <sys/swap.h>
23#if defined(__i386__) || defined(__x86_64__)
23#include <sys/io.h> 24#include <sys/io.h>
25#endif
24#include <sys/wait.h> 26#include <sys/wait.h>
25extern int init_module(void *module_image, unsigned long len, 27extern int init_module(void *module_image, unsigned long len,
26 const char *param_values); 28 const char *param_values);
@@ -69,6 +71,7 @@ void syscall_helper(int argc, char **argv) {
69 pivot_root(NULL, NULL); 71 pivot_root(NULL, NULL);
70 printf("\nUGLY: pivot_root syscall permitted.\n"); 72 printf("\nUGLY: pivot_root syscall permitted.\n");
71 } 73 }
74#if defined(__i386__) || defined(__x86_64__)
72 else if (strcmp(argv[2], "iopl") == 0) { 75 else if (strcmp(argv[2], "iopl") == 0) {
73 iopl(0L); 76 iopl(0L);
74 printf("\nUGLY: iopl syscall permitted.\n"); 77 printf("\nUGLY: iopl syscall permitted.\n");
@@ -77,6 +80,7 @@ void syscall_helper(int argc, char **argv) {
77 ioperm(0, 0, 0); 80 ioperm(0, 0, 0);
78 printf("\nUGLY: ioperm syscall permitted.\n"); 81 printf("\nUGLY: ioperm syscall permitted.\n");
79 } 82 }
83#endif
80 exit(0); 84 exit(0);
81} 85}
82 86