aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-01-11 22:16:14 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-01-11 22:26:09 +0100
commit15128d47bd7de318bea5ecf0fb15a45deb794c9d (patch)
treec4a1dc12dc0cd3ae937ab98f65af901221583161 /executor/executor.cc
parent4d906f05d4d76e153e71a56eccf91eab24286f3a (diff)
sys: support /dev/snd/seq
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 7ef506f08..20beb728f 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -361,7 +361,13 @@ 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:
+ if (strcmp(syscalls[call_num]
+ .name,
+ "open$sndseq") == 0)
+ root = true;
}
+
// Find a spare thread to execute the call.
int i;
for (i = 0; i < kMaxThreads; i++) {