aboutsummaryrefslogtreecommitdiffstats
path: root/src/jailcheck/jailcheck.h
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2021-05-18 13:49:02 -0400
committerLibravatar netblue30 <netblue30@protonmail.com>2021-05-18 13:49:02 -0400
commitb79e4416fe642976111a2d610a19c3e4696bb2e2 (patch)
treec038806bb80d57314a248dbc6df92b91d32a3a59 /src/jailcheck/jailcheck.h
parentreadme, etc (diff)
downloadfirejail-b79e4416fe642976111a2d610a19c3e4696bb2e2.tar.gz
firejail-b79e4416fe642976111a2d610a19c3e4696bb2e2.tar.zst
firejail-b79e4416fe642976111a2d610a19c3e4696bb2e2.zip
jailtest -> jailcheck (#4268)
Diffstat (limited to 'src/jailcheck/jailcheck.h')
-rw-r--r--src/jailcheck/jailcheck.h62
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
26extern uid_t user_uid;
27extern gid_t user_gid;
28extern char *user_name;
29extern char *user_home_dir;
30extern char *user_run_dir;
31
32// access.c
33void access_setup(const char *directory);
34void access_test(void);
35void access_destroy(void);
36
37// noexec.c
38void noexec_setup(void);
39void noexec_test(const char *msg);
40
41// sysfiles.c
42void sysfiles_setup(const char *file);
43void sysfiles_test(void);
44
45// virtual.c
46void virtual_setup(const char *directory);
47void virtual_destroy(void);
48void virtual_test(void);
49
50// apparmor.c
51void apparmor_test(pid_t pid);
52
53// seccomp.c
54void seccomp_test(pid_t pid);
55
56// utils.c
57char *get_sudo_user(void);
58char *get_homedir(const char *user, uid_t *uid, gid_t *gid);
59int find_child(pid_t pid);
60pid_t switch_to_child(pid_t pid);
61
62#endif \ No newline at end of file