aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-10-24 10:16:19 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-11-03 14:20:59 +0100
commitd40d75d2d787b9d4f949422b88de18ede4ee20b6 (patch)
tree18713cd0e1884616ceee1c74381eba65419aff9f /executor/executor.cc
parent97f4b019d87a073ff02a3ff8b08ada59aea6e688 (diff)
executor: move fixed pci devlink handle into network namespace
In case there is a fixed pci devlink handle "pci/pci/0000:00:10.0" on the system (initial network namespace), it is moved to a working network namespace. Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 30d497ea9..2016a8bf5 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -118,6 +118,7 @@ static bool flag_enable_net_dev;
static bool flag_enable_net_reset;
static bool flag_enable_cgroups;
static bool flag_enable_close_fds;
+static bool flag_enable_devlink_pci;
static bool flag_collect_cover;
static bool flag_dedup_cover;
@@ -481,6 +482,7 @@ void parse_env_flags(uint64 flags)
flag_enable_net_reset = flags & (1 << 8);
flag_enable_cgroups = flags & (1 << 9);
flag_enable_close_fds = flags & (1 << 10);
+ flag_enable_devlink_pci = flags & (1 << 11);
}
#if SYZ_EXECUTOR_USES_FORK_SERVER