xref: /openbmc/qemu/include/sysemu/seccomp.h (revision 44b1ff31)
1 /*
2  * QEMU seccomp mode 2 support with libseccomp
3  *
4  * Copyright IBM, Corp. 2012
5  *
6  * Authors:
7  *  Eduardo Otubo    <eotubo@br.ibm.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2.  See
10  * the COPYING file in the top-level directory.
11  *
12  * Contributions after 2012-01-13 are licensed under the terms of the
13  * GNU GPL, version 2 or (at your option) any later version.
14  */
15 #ifndef QEMU_SECCOMP_H
16 #define QEMU_SECCOMP_H
17 
18 #define QEMU_SECCOMP_SET_DEFAULT     (1 << 0)
19 #define QEMU_SECCOMP_SET_OBSOLETE    (1 << 1)
20 #define QEMU_SECCOMP_SET_PRIVILEGED  (1 << 2)
21 #define QEMU_SECCOMP_SET_SPAWN       (1 << 3)
22 #define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4)
23 
24 int seccomp_start(uint32_t seccomp_opts);
25 #endif
26