diff options
Diffstat (limited to 'src/jailcheck/jailcheck.h')
-rw-r--r-- | src/jailcheck/jailcheck.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/jailcheck/jailcheck.h b/src/jailcheck/jailcheck.h new file mode 100644 index 000000000..32be1c978 --- /dev/null +++ b/src/jailcheck/jailcheck.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014-2021 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 | #ifndef JAILCHECK_H | ||
21 | #define JAILCHECK_H | ||
22 | |||
23 | #include "../include/common.h" | ||
24 | |||
25 | // main.c | ||
26 | extern uid_t user_uid; | ||
27 | extern gid_t user_gid; | ||
28 | extern char *user_name; | ||
29 | extern char *user_home_dir; | ||
30 | extern char *user_run_dir; | ||
31 | |||
32 | // access.c | ||
33 | void access_setup(const char *directory); | ||
34 | void access_test(void); | ||
35 | void access_destroy(void); | ||
36 | |||
37 | // noexec.c | ||
38 | void noexec_setup(void); | ||
39 | void noexec_test(const char *msg); | ||
40 | |||
41 | // sysfiles.c | ||
42 | void sysfiles_setup(const char *file); | ||
43 | void sysfiles_test(void); | ||
44 | |||
45 | // virtual.c | ||
46 | void virtual_setup(const char *directory); | ||
47 | void virtual_destroy(void); | ||
48 | void virtual_test(void); | ||
49 | |||
50 | // apparmor.c | ||
51 | void apparmor_test(pid_t pid); | ||
52 | |||
53 | // seccomp.c | ||
54 | void seccomp_test(pid_t pid); | ||
55 | |||
56 | // utils.c | ||
57 | char *get_sudo_user(void); | ||
58 | char *get_homedir(const char *user, uid_t *uid, gid_t *gid); | ||
59 | int find_child(pid_t pid); | ||
60 | pid_t switch_to_child(pid_t pid); | ||
61 | |||
62 | #endif \ No newline at end of file | ||