diff options
Diffstat (limited to 'src/fbuilder/fbuilder.h')
-rw-r--r-- | src/fbuilder/fbuilder.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/fbuilder/fbuilder.h b/src/fbuilder/fbuilder.h new file mode 100644 index 000000000..a9049ea2d --- /dev/null +++ b/src/fbuilder/fbuilder.h | |||
@@ -0,0 +1,65 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014-2017 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 FBUILDER_H | ||
22 | #define FBUILDER_H | ||
23 | #include "../include/common.h" | ||
24 | #include <sys/types.h> | ||
25 | #include <pwd.h> | ||
26 | #include <sys/types.h> | ||
27 | #include <sys/stat.h> | ||
28 | |||
29 | |||
30 | #define MAX_BUF 4096 | ||
31 | // main.c | ||
32 | extern int arg_debug; | ||
33 | |||
34 | // build_profile.c | ||
35 | void build_profile(int argc, char **argv, int index); | ||
36 | |||
37 | // build_seccomp.c | ||
38 | void build_seccomp(const char *fname); | ||
39 | void build_protocol(const char *fname); | ||
40 | |||
41 | // build_fs.c | ||
42 | void build_etc(const char *fname); | ||
43 | void build_var(const char *fname); | ||
44 | void build_tmp(const char *fname); | ||
45 | void build_dev(const char *fname); | ||
46 | |||
47 | // build_home.c | ||
48 | void build_home(const char *fname); | ||
49 | |||
50 | // utils.c | ||
51 | int is_dir(const char *fname); | ||
52 | char *extract_dir(char *fname); | ||
53 | |||
54 | // filedb.c | ||
55 | typedef struct filedb_t { | ||
56 | struct filedb_t *next; | ||
57 | char *fname; // file name | ||
58 | int len; // length of file name | ||
59 | } FileDB; | ||
60 | |||
61 | FileDB *filedb_add(FileDB *head, const char *fname); | ||
62 | FileDB *filedb_find(FileDB *head, const char *fname); | ||
63 | void filedb_print(FileDB *head, const char *prefix); | ||
64 | |||
65 | #endif \ No newline at end of file | ||