diff options
Diffstat (limited to 'src/jailtest/jailtest.h')
-rw-r--r-- | src/jailtest/jailtest.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/jailtest/jailtest.h b/src/jailtest/jailtest.h index 678f94bef..10174cc9a 100644 --- a/src/jailtest/jailtest.h +++ b/src/jailtest/jailtest.h | |||
@@ -1,3 +1,22 @@ | |||
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 | */ | ||
1 | #ifndef JAILTEST_H | 20 | #ifndef JAILTEST_H |
2 | #define JAILTEST_H | 21 | #define JAILTEST_H |
3 | 22 | ||
@@ -8,6 +27,7 @@ extern uid_t user_uid; | |||
8 | extern gid_t user_gid; | 27 | extern gid_t user_gid; |
9 | extern char *user_name; | 28 | extern char *user_name; |
10 | extern char *user_home_dir; | 29 | extern char *user_home_dir; |
30 | extern char *user_run_dir; | ||
11 | 31 | ||
12 | // access.c | 32 | // access.c |
13 | void access_setup(const char *directory); | 33 | void access_setup(const char *directory); |
@@ -23,10 +43,16 @@ void virtual_setup(const char *directory); | |||
23 | void virtual_destroy(void); | 43 | void virtual_destroy(void); |
24 | void virtual_test(void); | 44 | void virtual_test(void); |
25 | 45 | ||
46 | // apparmor.c | ||
47 | void apparmor_test(pid_t pid); | ||
48 | |||
49 | // seccomp.c | ||
50 | void seccomp_test(pid_t pid); | ||
51 | |||
26 | // utils.c | 52 | // utils.c |
27 | char *get_sudo_user(void); | 53 | char *get_sudo_user(void); |
28 | char *get_homedir(const char *user, uid_t *uid, gid_t *gid); | 54 | char *get_homedir(const char *user, uid_t *uid, gid_t *gid); |
29 | int find_child(pid_t parent, pid_t *child); | 55 | int find_child(pid_t pid); |
30 | pid_t switch_to_child(pid_t pid); | 56 | pid_t switch_to_child(pid_t pid); |
31 | 57 | ||
32 | #endif \ No newline at end of file | 58 | #endif \ No newline at end of file |