]> git.proxmox.com Git - mirror_qemu.git/commit
seccomp: allow sched_setscheduler() with SCHED_IDLE policy
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 10 Jul 2018 14:55:57 +0000 (16:55 +0200)
committerEduardo Otubo <otubo@redhat.com>
Thu, 12 Jul 2018 12:52:39 +0000 (14:52 +0200)
commit056de1e894155fbb99e7b43c1c4382d4920cf437
tree91b276b5acf52682ff670f55b08f1457c6a83994
parentc447afd5783b9237fa51b7a85777007d8d568bfc
seccomp: allow sched_setscheduler() with SCHED_IDLE policy

Current and upcoming mesa releases rely on a shader disk cash. It uses
a thread job queue with low priority, set with
sched_setscheduler(SCHED_IDLE). However, that syscall is rejected by
the "resourcecontrol" seccomp qemu filter.

Since it should be safe to allow lowering thread priority, let's allow
scheduling thread to idle policy.

Related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1594456

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Eduardo Otubo <otubo@redhat.com>
qemu-seccomp.c