diff options
Diffstat (limited to 'src/faudit/syscall.c')
-rw-r--r-- | src/faudit/syscall.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/faudit/syscall.c b/src/faudit/syscall.c index 11fb3730b..84d73a03f 100644 --- a/src/faudit/syscall.c +++ b/src/faudit/syscall.c | |||
@@ -22,52 +22,52 @@ | |||
22 | void syscall_helper(int argc, char **argv) { | 22 | void syscall_helper(int argc, char **argv) { |
23 | if (strcmp(argv[2], "mount") == 0) { | 23 | if (strcmp(argv[2], "mount") == 0) { |
24 | mount(NULL, NULL, NULL, 0, NULL); | 24 | mount(NULL, NULL, NULL, 0, NULL); |
25 | printf("\nUGLY: mount syscall permitted\n"); | 25 | printf("\nUGLY: mount syscall permitted.\n"); |
26 | } | 26 | } |
27 | else if (strcmp(argv[2], "umount2") == 0) { | 27 | else if (strcmp(argv[2], "umount2") == 0) { |
28 | umount2(NULL, 0); | 28 | umount2(NULL, 0); |
29 | printf("\nUGLY: umount2 syscall permitted\n"); | 29 | printf("\nUGLY: umount2 syscall permitted.\n"); |
30 | } | 30 | } |
31 | else if (strcmp(argv[2], "ptrace") == 0) { | 31 | else if (strcmp(argv[2], "ptrace") == 0) { |
32 | ptrace(0, 0, NULL, NULL); | 32 | ptrace(0, 0, NULL, NULL); |
33 | printf("\nUGLY: ptrace syscall permitted\n"); | 33 | printf("\nUGLY: ptrace syscall permitted.\n"); |
34 | } | 34 | } |
35 | else if (strcmp(argv[2], "swapon") == 0) { | 35 | else if (strcmp(argv[2], "swapon") == 0) { |
36 | swapon(NULL, 0); | 36 | swapon(NULL, 0); |
37 | printf("\nUGLY: swapon syscall permitted\n"); | 37 | printf("\nUGLY: swapon syscall permitted.\n"); |
38 | } | 38 | } |
39 | else if (strcmp(argv[2], "swapoff") == 0) { | 39 | else if (strcmp(argv[2], "swapoff") == 0) { |
40 | swapoff(NULL); | 40 | swapoff(NULL); |
41 | printf("\nUGLY: swapoff syscall permitted\n"); | 41 | printf("\nUGLY: swapoff syscall permitted.\n"); |
42 | } | 42 | } |
43 | else if (strcmp(argv[2], "init_module") == 0) { | 43 | else if (strcmp(argv[2], "init_module") == 0) { |
44 | init_module(NULL, 0, NULL); | 44 | init_module(NULL, 0, NULL); |
45 | printf("\nUGLY: init_moule syscall permitted\n"); | 45 | printf("\nUGLY: init_module syscall permitted.\n"); |
46 | } | 46 | } |
47 | else if (strcmp(argv[2], "finit_module") == 0) { | 47 | else if (strcmp(argv[2], "finit_module") == 0) { |
48 | swapoff(0, NULL, 0); | 48 | swapoff(0, NULL, 0); |
49 | printf("\nUGLY: finit_moule syscall permitted\n"); | 49 | printf("\nUGLY: finit_module syscall permitted.\n"); |
50 | } | 50 | } |
51 | else if (strcmp(argv[2], "delete_module") == 0) { | 51 | else if (strcmp(argv[2], "delete_module") == 0) { |
52 | delete_module(NULL, 0); | 52 | delete_module(NULL, 0); |
53 | printf("\nUGLY: delete_moule syscall permitted\n"); | 53 | printf("\nUGLY: delete_module syscall permitted.\n"); |
54 | } | 54 | } |
55 | else if (strcmp(argv[2], "chroot") == 0) { | 55 | else if (strcmp(argv[2], "chroot") == 0) { |
56 | int rv = chroot(NULL); | 56 | int rv = chroot(NULL); |
57 | (void) rv; | 57 | (void) rv; |
58 | printf("\nUGLY: chroot syscall permitted\n"); | 58 | printf("\nUGLY: chroot syscall permitted.\n"); |
59 | } | 59 | } |
60 | else if (strcmp(argv[2], "pivot_root") == 0) { | 60 | else if (strcmp(argv[2], "pivot_root") == 0) { |
61 | pivot_root(NULL, NULL); | 61 | pivot_root(NULL, NULL); |
62 | printf("\nUGLY: pivot_root syscall permitted\n"); | 62 | printf("\nUGLY: pivot_root syscall permitted.\n"); |
63 | } | 63 | } |
64 | else if (strcmp(argv[2], "iopl") == 0) { | 64 | else if (strcmp(argv[2], "iopl") == 0) { |
65 | iopl(0L); | 65 | iopl(0L); |
66 | printf("\nUGLY: iopl syscall permitted\n"); | 66 | printf("\nUGLY: iopl syscall permitted.\n"); |
67 | } | 67 | } |
68 | else if (strcmp(argv[2], "ioperm") == 0) { | 68 | else if (strcmp(argv[2], "ioperm") == 0) { |
69 | ioperm(0, 0, 0); | 69 | ioperm(0, 0, 0); |
70 | printf("\nUGLY: ioperm syscall permitted\n"); | 70 | printf("\nUGLY: ioperm syscall permitted.\n"); |
71 | } | 71 | } |
72 | exit(0); | 72 | exit(0); |
73 | } | 73 | } |