aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/common.go
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 /pkg/csource/common.go
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 'pkg/csource/common.go')
-rw-r--r--pkg/csource/common.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/csource/common.go b/pkg/csource/common.go
index e537ed724..67d31ad81 100644
--- a/pkg/csource/common.go
+++ b/pkg/csource/common.go
@@ -95,6 +95,7 @@ func defineList(p, mmapProg *prog.Prog, opts Options) (defines []string) {
"SYZ_ENABLE_BINFMT_MISC": opts.EnableBinfmtMisc,
"SYZ_ENABLE_CLOSE_FDS": opts.EnableCloseFds,
"SYZ_ENABLE_KCSAN": opts.EnableKCSAN,
+ "SYZ_ENABLE_DEVLINK_PCI": opts.EnableDevlinkPCI,
"SYZ_USE_TMP_DIR": opts.UseTmpDir,
"SYZ_HANDLE_SEGV": opts.HandleSegv,
"SYZ_REPRO": opts.Repro,