diff options
author | Fred-Barclay <Fred-Barclay@users.noreply.github.com> | 2017-09-19 23:26:22 -0500 |
---|---|---|
committer | Fred-Barclay <Fred-Barclay@users.noreply.github.com> | 2017-09-19 23:26:22 -0500 |
commit | 88c3a266eaaab9a41fe56c7c012ced5d6c33c6d2 (patch) | |
tree | ff4ab558330f8c566ddf7e9909a57e71913a232a /src/fbuilder/fbuilder.h | |
parent | Fix private-bit filter for firefox on Arch (diff) | |
parent | add nogroups (diff) | |
download | firejail-88c3a266eaaab9a41fe56c7c012ced5d6c33c6d2.tar.gz firejail-88c3a266eaaab9a41fe56c7c012ced5d6c33c6d2.tar.zst firejail-88c3a266eaaab9a41fe56c7c012ced5d6c33c6d2.zip |
Merge branch 'master' of https://github.com/netblue30/firejail
Diffstat (limited to 'src/fbuilder/fbuilder.h')
-rw-r--r-- | src/fbuilder/fbuilder.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/fbuilder/fbuilder.h b/src/fbuilder/fbuilder.h new file mode 100644 index 000000000..c448f3e06 --- /dev/null +++ b/src/fbuilder/fbuilder.h | |||
@@ -0,0 +1,68 @@ | |||
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_bin.c | ||
48 | void build_bin(const char *fname); | ||
49 | |||
50 | // build_home.c | ||
51 | void build_home(const char *fname); | ||
52 | |||
53 | // utils.c | ||
54 | int is_dir(const char *fname); | ||
55 | char *extract_dir(char *fname); | ||
56 | |||
57 | // filedb.c | ||
58 | typedef struct filedb_t { | ||
59 | struct filedb_t *next; | ||
60 | char *fname; // file name | ||
61 | int len; // length of file name | ||
62 | } FileDB; | ||
63 | |||
64 | FileDB *filedb_add(FileDB *head, const char *fname); | ||
65 | FileDB *filedb_find(FileDB *head, const char *fname); | ||
66 | void filedb_print(FileDB *head, const char *prefix); | ||
67 | |||
68 | #endif \ No newline at end of file | ||