From 7ac22ed3588ce9e8bb5ec7ebd3d7062dcf65a64c Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 2 Jul 2016 09:48:57 -0400 Subject: audit: seccomp --- src/faudit/main.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'src/faudit/main.c') 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 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "faudit.h" +#include +char *prog; int main(int argc, char **argv) { - printf("\n----- Firejail Audit: the Good, the Bad and the Ugly -----\n"); + printf("\n-------- Firejail Audit: the Good, the Bad and the Ugly --------\n"); + // extract program name + prog = realpath(argv[0], NULL); + if (prog == NULL) { + fprintf(stderr, "Error: cannot extract the path of the audit program\n"); + return 1; + } + printf("Running %s\n", prog); + + // check pid namespace - pid(); + pid_test(); - // chack capabilities - caps(); + // check capabilities + caps_test(); - printf("----------------------------------------------------------\n"); - return 0; + // check seccomp + seccomp_test(); + free(prog); + printf("----------------------------------------------------------------\n"); + return 0; } -- cgit v1.2.3-70-g09d2