From d40d75d2d787b9d4f949422b88de18ede4ee20b6 Mon Sep 17 00:00:00 2001 From: Jiri Pirko Date: Thu, 24 Oct 2019 10:16:19 +0200 Subject: 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 --- tools/syz-execprog/execprog.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/syz-execprog') diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index 32ba987ae..909715b7c 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -326,5 +326,8 @@ func createConfig(target *prog.Target, if featuresFlags["close_fds"].Enabled { config.Flags |= ipc.FlagEnableCloseFds } + if featuresFlags["devlink_pci"].Enabled && features[host.FeatureDevlinkPCI].Enabled { + config.Flags |= ipc.FlagEnableDevlinkPCI + } return config, execOpts } -- cgit mrf-deployment