aboutsummaryrefslogtreecommitdiffstats
path: root/src/fbuilder/fbuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbuilder/fbuilder.h')
-rw-r--r--src/fbuilder/fbuilder.h69
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
32extern int arg_debug;
33
34// build_profile.c
35void build_profile(int argc, char **argv, int index, FILE *fp);
36
37// build_seccomp.c
38void build_seccomp(const char *fname, FILE *fp);
39void build_protocol(const char *fname, FILE *fp);
40
41// build_fs.c
42void build_etc(const char *fname, FILE *fp);
43void build_var(const char *fname, FILE *fp);
44void build_tmp(const char *fname, FILE *fp);
45void build_dev(const char *fname, FILE *fp);
46void build_share(const char *fname, FILE *fp);
47
48// build_bin.c
49void build_bin(const char *fname, FILE *fp);
50
51// build_home.c
52void build_home(const char *fname, FILE *fp);
53
54// utils.c
55int is_dir(const char *fname);
56char *extract_dir(char *fname);
57
58// filedb.c
59typedef struct filedb_t {
60 struct filedb_t *next;
61 char *fname; // file name
62 int len; // length of file name
63} FileDB;
64
65FileDB *filedb_add(FileDB *head, const char *fname);
66FileDB *filedb_find(FileDB *head, const char *fname);
67void filedb_print(FileDB *head, const char *prefix, FILE *fp);
68
69#endif \ No newline at end of file