aboutsummaryrefslogtreecommitdiffstats
path: root/src/faudit/syscall.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-07-05 07:24:10 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-07-05 07:24:10 -0400
commit3f8d6787b7ccff3ed7ff77a3b474856ae1be6a9b (patch)
tree15b9f2e7810b0812eaa9827a4ee668ee29b6551f /src/faudit/syscall.c
parentsrc/faudit/dbus.c (diff)
downloadfirejail-3f8d6787b7ccff3ed7ff77a3b474856ae1be6a9b.tar.gz
firejail-3f8d6787b7ccff3ed7ff77a3b474856ae1be6a9b.tar.zst
firejail-3f8d6787b7ccff3ed7ff77a3b474856ae1be6a9b.zip
faudit: dbus
Diffstat (limited to 'src/faudit/syscall.c')
-rw-r--r--src/faudit/syscall.c24
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 @@
22void syscall_helper(int argc, char **argv) { 22void 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}