github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/freebsd/init.go (about) 1 // Copyright 2017 syzkaller project authors. All rights reserved. 2 // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 package freebsd 5 6 import ( 7 "github.com/google/syzkaller/prog" 8 "github.com/google/syzkaller/sys/targets" 9 ) 10 11 func InitTarget(target *prog.Target) { 12 arch := &arch{ 13 unix: targets.MakeUnixNeutralizer(target), 14 } 15 16 target.MakeDataMmap = targets.MakePosixMmap(target, true, false) 17 target.Neutralize = arch.unix.Neutralize 18 } 19 20 type arch struct { 21 unix *targets.UnixNeutralizer 22 }