blob: fe859894f6b22ca19c7f2983754d525165514bb5 [file] [log] [blame]
Eduardo Otubo2f668be2012-08-14 18:44:06 -03001/*
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 Otubo1bd61522017-02-28 21:13:12 +010018#define QEMU_SECCOMP_SET_DEFAULT (1 << 0)
Eduardo Otubo2b716fa2017-03-01 23:17:29 +010019#define QEMU_SECCOMP_SET_OBSOLETE (1 << 1)
Eduardo Otubo73a1e642017-03-13 22:13:27 +010020#define QEMU_SECCOMP_SET_PRIVILEGED (1 << 2)
Eduardo Otubo995a2262017-03-13 22:16:01 +010021#define QEMU_SECCOMP_SET_SPAWN (1 << 3)
Eduardo Otubo24f8cdc2017-03-13 22:18:51 +010022#define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4)
Eduardo Otubo1bd61522017-02-28 21:13:12 +010023
Yi Min Zhao9d0fdec2018-05-31 11:29:37 +080024int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp);
25
Eduardo Otubo2f668be2012-08-14 18:44:06 -030026#endif