aboutsummaryrefslogtreecommitdiffstats
path: root/src/faudit/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/faudit/main.c')
-rw-r--r--src/faudit/main.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/faudit/main.c b/src/faudit/main.c
index a3407caa1..0724a7ec9 100644
--- a/src/faudit/main.c
+++ b/src/faudit/main.c
@@ -18,17 +18,31 @@
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>
22char *prog;
21 23
22int main(int argc, char **argv) { 24int main(int argc, char **argv) {
23 printf("\n----- Firejail Audit: the Good, the Bad and the Ugly -----\n"); 25 printf("\n-------- Firejail Audit: the Good, the Bad and the Ugly --------\n");
24 26
27 // extract program name
28 prog = realpath(argv[0], NULL);
29 if (prog == NULL) {
30 fprintf(stderr, "Error: cannot extract the path of the audit program\n");
31 return 1;
32 }
33 printf("Running %s\n", prog);
34
35
25 // check pid namespace 36 // check pid namespace
26 pid(); 37 pid_test();
27 38
28 // chack capabilities 39 // check capabilities
29 caps(); 40 caps_test();
30 41
31 printf("----------------------------------------------------------\n"); 42 // check seccomp
32 return 0; 43 seccomp_test();
33 44
45 free(prog);
46 printf("----------------------------------------------------------------\n");
47 return 0;
34} 48}