From 9c277c79744a9cb6dd9174fccbde52b65803530f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 16 Jan 2016 00:23:47 +0100 Subject: sys: describe more dri syscalls --- executor/executor.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index ed7648934..432b72557 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -364,6 +364,12 @@ thread_t* schedule_call(int n, int call_index, int call_num, uint64_t num_args, case __NR_syz_fuse_mount: case __NR_syz_fuseblk_mount: root = true; + default: + // Lots of dri ioctls require root. + // There are some generic permission checks that hopefully don't contain bugs, + // so let's just execute all them under root. + if (strncmp(syscalls[call_num].name, "ioctl$DRM", sizeof("ioctl$DRM")) == 0) + root = true; } // Find a spare thread to execute the call. -- cgit mrf-deployment