aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2015-11-30 17:18:12 +0100
committerDmitry Vyukov <dvyukov@google.com>2015-11-30 17:18:12 +0100
commitf881e7de45e4cc113f0124ba54f0a3c9c12c5d37 (patch)
tree78d97457458cf1d8ea29f9df20587aefe103c524 /executor
parenta63ac433ab3ac78cae4369594f445c26888bcbfc (diff)
executor: execute mount under root
Diffstat (limited to 'executor')
-rw-r--r--executor/executor.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 614ecae49..9d11b01ef 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -347,6 +347,8 @@ thread_t* schedule_call(int n, int call_index, int call_num, uint64_t num_args,
// Figure out whether we need root privs for this call.
bool root = false;
switch (syscalls[call_num].sys_nr) {
+ case __NR_mount:
+ case __NR_umount2:
case __NR_syz_fuse_mount:
case __NR_syz_fuseblk_mount:
root = true;