]> git.proxmox.com Git - mirror_qemu.git/blame - include/sysemu/seccomp.h
seccomp: add resourcecontrol argument to command line
[mirror_qemu.git] / include / sysemu / seccomp.h
CommitLineData
2f668be7
EO
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
1bd6152a 18#define QEMU_SECCOMP_SET_DEFAULT (1 << 0)
2b716fa6 19#define QEMU_SECCOMP_SET_OBSOLETE (1 << 1)
73a1e647 20#define QEMU_SECCOMP_SET_PRIVILEGED (1 << 2)
995a226f 21#define QEMU_SECCOMP_SET_SPAWN (1 << 3)
24f8cdc5 22#define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4)
1bd6152a 23
2f668be7 24#include <seccomp.h>
2f668be7 25
2b716fa6 26int seccomp_start(uint32_t seccomp_opts);
2f668be7 27#endif