Eduardo Otubo | 2f668be | 2012-08-14 18:44:06 -0300 | [diff] [blame] | 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 | |
Eduardo Otubo | 1bd6152 | 2017-02-28 21:13:12 +0100 | [diff] [blame] | 18 | #define QEMU_SECCOMP_SET_DEFAULT (1 << 0) |
Eduardo Otubo | 2b716fa | 2017-03-01 23:17:29 +0100 | [diff] [blame] | 19 | #define QEMU_SECCOMP_SET_OBSOLETE (1 << 1) |
Eduardo Otubo | 73a1e64 | 2017-03-13 22:13:27 +0100 | [diff] [blame] | 20 | #define QEMU_SECCOMP_SET_PRIVILEGED (1 << 2) |
Eduardo Otubo | 995a226 | 2017-03-13 22:16:01 +0100 | [diff] [blame] | 21 | #define QEMU_SECCOMP_SET_SPAWN (1 << 3) |
Eduardo Otubo | 24f8cdc | 2017-03-13 22:18:51 +0100 | [diff] [blame] | 22 | #define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4) |
Eduardo Otubo | 1bd6152 | 2017-02-28 21:13:12 +0100 | [diff] [blame] | 23 | |
Yi Min Zhao | 9d0fdec | 2018-05-31 11:29:37 +0800 | [diff] [blame] | 24 | int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp); |
| 25 | |
Eduardo Otubo | 2f668be | 2012-08-14 18:44:06 -0300 | [diff] [blame] | 26 | #endif |