diff options
Diffstat (limited to 'src/faudit/faudit.h')
-rw-r--r-- | src/faudit/faudit.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/faudit/faudit.h b/src/faudit/faudit.h new file mode 100644 index 000000000..f54f95f98 --- /dev/null +++ b/src/faudit/faudit.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014-2016 Firejail Authors | ||
3 | * | ||
4 | * This file is part of firejail project | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef FAUDIT_H | ||
22 | #define FAUDIT_H | ||
23 | #include <stdio.h> | ||
24 | #include <stdlib.h> | ||
25 | #include <stdint.h> | ||
26 | #include <string.h> | ||
27 | #include <unistd.h> | ||
28 | #include <sys/types.h> | ||
29 | #include <sys/stat.h> | ||
30 | #include <sys/mount.h> | ||
31 | #include <assert.h> | ||
32 | |||
33 | #define errExit(msg) do { char msgout[500]; sprintf(msgout, "Error %s:%s(%d)", msg, __FUNCTION__, __LINE__); perror(msgout); exit(1);} while (0) | ||
34 | |||
35 | // main.c | ||
36 | extern char *prog; | ||
37 | |||
38 | // pid.c | ||
39 | void pid_test(void); | ||
40 | |||
41 | // caps.c | ||
42 | void caps_test(void); | ||
43 | |||
44 | // seccomp.c | ||
45 | void seccomp_test(void); | ||
46 | |||
47 | // syscall.c | ||
48 | void syscall_helper(int argc, char **argv); | ||
49 | void syscall_run(const char *name); | ||
50 | |||
51 | // files.c | ||
52 | void files_test(void); | ||
53 | |||
54 | // network.c | ||
55 | void network_test(void); | ||
56 | |||
57 | // dbus.c | ||
58 | void dbus_test(void); | ||
59 | |||
60 | #endif \ No newline at end of file | ||