diff options
Diffstat (limited to 'src/faudit/main.c')
-rw-r--r-- | src/faudit/main.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/faudit/main.c b/src/faudit/main.c index 0724a7ec9..cd358cc1a 100644 --- a/src/faudit/main.c +++ b/src/faudit/main.c | |||
@@ -18,11 +18,22 @@ | |||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19 | */ | 19 | */ |
20 | #include "faudit.h" | 20 | #include "faudit.h" |
21 | #include <limits.h> | ||
22 | char *prog; | 21 | char *prog; |
23 | 22 | ||
24 | int main(int argc, char **argv) { | 23 | int main(int argc, char **argv) { |
25 | printf("\n-------- Firejail Audit: the Good, the Bad and the Ugly --------\n"); | 24 | if (argc != 1) { |
25 | int i; | ||
26 | |||
27 | for (i = 1; i < argc; i++) { | ||
28 | if (strcmp(argv[i], "syscall")) { | ||
29 | syscall_helper(argc, argv); | ||
30 | return 0; | ||
31 | } | ||
32 | } | ||
33 | return 1; | ||
34 | } | ||
35 | |||
36 | printf("\n---------------- Firejail Audit: the Good, the Bad and the Ugly ----------------\n"); | ||
26 | 37 | ||
27 | // extract program name | 38 | // extract program name |
28 | prog = realpath(argv[0], NULL); | 39 | prog = realpath(argv[0], NULL); |
@@ -30,7 +41,7 @@ int main(int argc, char **argv) { | |||
30 | fprintf(stderr, "Error: cannot extract the path of the audit program\n"); | 41 | fprintf(stderr, "Error: cannot extract the path of the audit program\n"); |
31 | return 1; | 42 | return 1; |
32 | } | 43 | } |
33 | printf("Running %s\n", prog); | 44 | printf("INFO: starting %s\n", prog); |
34 | 45 | ||
35 | 46 | ||
36 | // check pid namespace | 47 | // check pid namespace |
@@ -43,6 +54,6 @@ int main(int argc, char **argv) { | |||
43 | seccomp_test(); | 54 | seccomp_test(); |
44 | 55 | ||
45 | free(prog); | 56 | free(prog); |
46 | printf("----------------------------------------------------------------\n"); | 57 | printf("--------------------------------------------------------------------------------\n"); |
47 | return 0; | 58 | return 0; |
48 | } | 59 | } |