2012-08-14 23:44:06 +02:00
|
|
|
/*
|
|
|
|
* QEMU seccomp mode 2 support with libseccomp
|
|
|
|
*
|
|
|
|
* Copyright IBM, Corp. 2012
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Eduardo Otubo <eotubo@br.ibm.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2. See
|
|
|
|
* the COPYING file in the top-level directory.
|
|
|
|
*
|
|
|
|
* Contributions after 2012-01-13 are licensed under the terms of the
|
|
|
|
* GNU GPL, version 2 or (at your option) any later version.
|
|
|
|
*/
|
|
|
|
#ifndef QEMU_SECCOMP_H
|
|
|
|
#define QEMU_SECCOMP_H
|
|
|
|
|
2017-02-28 21:13:12 +01:00
|
|
|
#define QEMU_SECCOMP_SET_DEFAULT (1 << 0)
|
2017-03-01 23:17:29 +01:00
|
|
|
#define QEMU_SECCOMP_SET_OBSOLETE (1 << 1)
|
2017-03-13 22:13:27 +01:00
|
|
|
#define QEMU_SECCOMP_SET_PRIVILEGED (1 << 2)
|
2017-03-13 22:16:01 +01:00
|
|
|
#define QEMU_SECCOMP_SET_SPAWN (1 << 3)
|
2017-03-13 22:18:51 +01:00
|
|
|
#define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4)
|
2017-02-28 21:13:12 +01:00
|
|
|
|
2018-05-31 05:29:37 +02:00
|
|
|
int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp);
|
|
|
|
|
2012-08-14 23:44:06 +02:00
|
|
|
#endif
|