diff options
author | Eduardo Otubo | 2017-03-13 22:13:27 +0100 |
---|---|---|
committer | Eduardo Otubo | 2017-09-15 10:15:06 +0200 |
commit | 73a1e647256b09734ce64ef7a6001a0db03f7106 (patch) | |
tree | 522eda09d8df57747caf6acc9ecd4b3a61e4ecc3 /include/sysemu | |
parent | seccomp: add obsolete argument to command line (diff) | |
download | qemu-73a1e647256b09734ce64ef7a6001a0db03f7106.tar.gz qemu-73a1e647256b09734ce64ef7a6001a0db03f7106.tar.xz qemu-73a1e647256b09734ce64ef7a6001a0db03f7106.zip |
seccomp: add elevateprivileges argument to command line
This patch introduces the new argument
[,elevateprivileges=allow|deny|children] to the `-sandbox on'. It allows
or denies Qemu process to elevate its privileges by blacklisting all
set*uid|gid system calls. The 'children' option will let forks and
execves run unprivileged.
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/seccomp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/seccomp.h b/include/sysemu/seccomp.h index 215138a372..4a9e63c7cd 100644 --- a/include/sysemu/seccomp.h +++ b/include/sysemu/seccomp.h @@ -17,6 +17,7 @@ #define QEMU_SECCOMP_SET_DEFAULT (1 << 0) #define QEMU_SECCOMP_SET_OBSOLETE (1 << 1) +#define QEMU_SECCOMP_SET_PRIVILEGED (1 << 2) #include <seccomp.h> |