summaryrefslogtreecommitdiff
path: root/src/gen_bpf.h
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2012-02-01 11:14:34 -0500
committerPaul Moore <pmoore@redhat.com>2012-02-01 11:14:34 -0500
commitaa5f1289608fa52e7f097e6ca15ae24d9d7f09b3 (patch)
treeab103d18f68c8e0bd0100d2963f64be7659d48d1 /src/gen_bpf.h
parenta917c9541091a705e7aa4c6db74e8a6b3f6316ca (diff)
downloadlibseccomp-aa5f1289608fa52e7f097e6ca15ae24d9d7f09b3.tar.gz
libseccomp: rename translator_bpf.* to gen_bpf.*
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/gen_bpf.h')
-rw-r--r--src/gen_bpf.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gen_bpf.h b/src/gen_bpf.h
new file mode 100644
index 0000000..4862eea
--- /dev/null
+++ b/src/gen_bpf.h
@@ -0,0 +1,36 @@
+/**
+ * Seccomp BPF Translator
+ *
+ * Copyright (c) 2012 Red Hat <pmoore@redhat.com>
+ * Author: Paul Moore <pmoore@redhat.com>
+ */
+
+/*
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _TRANSLATOR_BPF_H
+#define _TRANSLATOR_BPF_H
+
+#if 0
+#include <linux/seccomp_filter.h>
+#else
+/* XXX - needed for early development only */
+#include <seccomp_filter.h>
+#endif
+
+#include "db.h"
+
+struct seccomp_fprog *gen_bpf_generate(const struct db_filter *db);
+
+#endif