summaryrefslogtreecommitdiffstats
path: root/src/fsec-optimize/fsec_optimize.h
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-01-02 09:08:12 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2018-01-02 09:08:12 -0500
commite2ff818e3c4414ca19cc8533b1bc3b7afd755758 (patch)
tree6c07abe14e03926d7508b00c4e6ea882e0889d81 /src/fsec-optimize/fsec_optimize.h
parentMerge pull request #1710 from bitfreak25/master (diff)
downloadfirejail-e2ff818e3c4414ca19cc8533b1bc3b7afd755758.tar.gz
firejail-e2ff818e3c4414ca19cc8533b1bc3b7afd755758.tar.zst
firejail-e2ff818e3c4414ca19cc8533b1bc3b7afd755758.zip
optimize default seccomp filters
Diffstat (limited to 'src/fsec-optimize/fsec_optimize.h')
-rw-r--r--src/fsec-optimize/fsec_optimize.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/fsec-optimize/fsec_optimize.h b/src/fsec-optimize/fsec_optimize.h
new file mode 100644
index 000000000..ff4d53ab2
--- /dev/null
+++ b/src/fsec-optimize/fsec_optimize.h
@@ -0,0 +1,30 @@
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#ifndef FSEC_OPTIMIZE_H
21#define FSEC_OPTIMIZE_H
22#include "../include/common.h"
23#include "../include/seccomp.h"
24#include <sys/mman.h>
25
26// optimize.c
27struct sock_filter *duplicate(struct sock_filter *filter, int entries);
28int optimize(struct sock_filter * filter, int entries);
29
30#endif \ No newline at end of file