diff options
Diffstat (limited to 'src/fbuilder/fbuilder.h')
-rw-r--r-- | src/fbuilder/fbuilder.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/fbuilder/fbuilder.h b/src/fbuilder/fbuilder.h deleted file mode 100644 index 0a0fd42c9..000000000 --- a/src/fbuilder/fbuilder.h +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014-2018 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, FILE *fp); | ||
36 | |||
37 | // build_seccomp.c | ||
38 | void build_seccomp(const char *fname, FILE *fp); | ||
39 | void build_protocol(const char *fname, FILE *fp); | ||
40 | |||
41 | // build_fs.c | ||
42 | void build_etc(const char *fname, FILE *fp); | ||
43 | void build_var(const char *fname, FILE *fp); | ||
44 | void build_tmp(const char *fname, FILE *fp); | ||
45 | void build_dev(const char *fname, FILE *fp); | ||
46 | void build_share(const char *fname, FILE *fp); | ||
47 | |||
48 | // build_bin.c | ||
49 | void build_bin(const char *fname, FILE *fp); | ||
50 | |||
51 | // build_home.c | ||
52 | void build_home(const char *fname, FILE *fp); | ||
53 | |||
54 | // utils.c | ||
55 | int is_dir(const char *fname); | ||
56 | char *extract_dir(char *fname); | ||
57 | |||
58 | // filedb.c | ||
59 | typedef struct filedb_t { | ||
60 | struct filedb_t *next; | ||
61 | char *fname; // file name | ||
62 | int len; // length of file name | ||
63 | } FileDB; | ||
64 | |||
65 | FileDB *filedb_add(FileDB *head, const char *fname); | ||
66 | FileDB *filedb_find(FileDB *head, const char *fname); | ||
67 | void filedb_print(FileDB *head, const char *prefix, FILE *fp); | ||
68 | |||
69 | #endif \ No newline at end of file | ||