]>
iEval git - linux-seccomp.git/blob - libseccomp/src/gen_bpf.h
14484e73dfbed98dac8fd820621b17c0e9890b96
2 * Seccomp BPF Translator
4 * Copyright (c) 2012 Red Hat <pmoore@redhat.com>
5 * Author: Paul Moore <paul@paul-moore.com>
9 * This library is free software; you can redistribute it and/or modify it
10 * under the terms of version 2.1 of the GNU Lesser General Public License as
11 * published by the Free Software Foundation.
13 * This library is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library; if not, see <http://www.gnu.org/licenses>.
22 #ifndef _TRANSLATOR_BPF_H
23 #define _TRANSLATOR_BPF_H
31 /* NOTE - do not change this structure, it is part of the prctl() API */
36 #define BPF_PGM_SIZE(x) \
37 ((x)->blk_cnt * sizeof(*((x)->blks)))
39 struct bpf_program
*gen_bpf_generate(const struct db_filter_col
*col
);
40 void gen_bpf_release(struct bpf_program
*program
);
This page took 0.0349660000000001 seconds and 3 git commands to generate.