2012-08-15 01:44:06 +04: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 23:13:12 +03:00
|
|
|
#define QEMU_SECCOMP_SET_DEFAULT (1 << 0)
|
2017-03-02 01:17:29 +03:00
|
|
|
#define QEMU_SECCOMP_SET_OBSOLETE (1 << 1)
|
2017-03-14 00:13:27 +03:00
|
|
|
#define QEMU_SECCOMP_SET_PRIVILEGED (1 << 2)
|
2017-03-14 00:16:01 +03:00
|
|
|
#define QEMU_SECCOMP_SET_SPAWN (1 << 3)
|
2017-03-14 00:18:51 +03:00
|
|
|
#define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4)
|
2017-02-28 23:13:12 +03:00
|
|
|
|
2018-05-31 06:29:37 +03:00
|
|
|
int parse_sandbox(void *opaque, QemuOpts *opts, Error **errp);
|
|
|
|
|
2012-08-15 01:44:06 +04:00
|
|
|
#endif
|