aboutsummaryrefslogtreecommitdiffstats
path: root/src/fbuilder/fbuilder.h
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-09-16 08:49:05 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-09-16 08:49:05 -0400
commit280f37eba89ebc211d0c02848d3d47d086458b25 (patch)
tree1398c5dfc53c4d286d7b6b528d5a3c1585a67325 /src/fbuilder/fbuilder.h
parentMerge pull request #1552 from SpotComms/mf (diff)
downloadfirejail-280f37eba89ebc211d0c02848d3d47d086458b25.tar.gz
firejail-280f37eba89ebc211d0c02848d3d47d086458b25.tar.zst
firejail-280f37eba89ebc211d0c02848d3d47d086458b25.zip
--build
Diffstat (limited to 'src/fbuilder/fbuilder.h')
-rw-r--r--src/fbuilder/fbuilder.h65
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
32extern int arg_debug;
33
34// build_profile.c
35void build_profile(int argc, char **argv, int index);
36
37// build_seccomp.c
38void build_seccomp(const char *fname);
39void build_protocol(const char *fname);
40
41// build_fs.c
42void build_etc(const char *fname);
43void build_var(const char *fname);
44void build_tmp(const char *fname);
45void build_dev(const char *fname);
46
47// build_home.c
48void build_home(const char *fname);
49
50// utils.c
51int is_dir(const char *fname);
52char *extract_dir(char *fname);
53
54// filedb.c
55typedef struct filedb_t {
56 struct filedb_t *next;
57 char *fname; // file name
58 int len; // length of file name
59} FileDB;
60
61FileDB *filedb_add(FileDB *head, const char *fname);
62FileDB *filedb_find(FileDB *head, const char *fname);
63void filedb_print(FileDB *head, const char *prefix);
64
65#endif \ No newline at end of file