aboutsummaryrefslogtreecommitdiffstats
path: root/src/jailtest/jailtest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jailtest/jailtest.h')
-rw-r--r--src/jailtest/jailtest.h28
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;
8extern gid_t user_gid; 27extern gid_t user_gid;
9extern char *user_name; 28extern char *user_name;
10extern char *user_home_dir; 29extern char *user_home_dir;
30extern char *user_run_dir;
11 31
12// access.c 32// access.c
13void access_setup(const char *directory); 33void access_setup(const char *directory);
@@ -23,10 +43,16 @@ void virtual_setup(const char *directory);
23void virtual_destroy(void); 43void virtual_destroy(void);
24void virtual_test(void); 44void virtual_test(void);
25 45
46// apparmor.c
47void apparmor_test(pid_t pid);
48
49// seccomp.c
50void seccomp_test(pid_t pid);
51
26// utils.c 52// utils.c
27char *get_sudo_user(void); 53char *get_sudo_user(void);
28char *get_homedir(const char *user, uid_t *uid, gid_t *gid); 54char *get_homedir(const char *user, uid_t *uid, gid_t *gid);
29int find_child(pid_t parent, pid_t *child); 55int find_child(pid_t pid);
30pid_t switch_to_child(pid_t pid); 56pid_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