aboutsummaryrefslogtreecommitdiffstats
path: root/sys/freebsd/init.go
blob: 33f93825a8b8c3d249de5ee03cbcf6391cc18145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

package freebsd

import (
	"github.com/google/syzkaller/prog"
	"github.com/google/syzkaller/sys/targets"
)

func InitTarget(target *prog.Target) {
	arch := &arch{
		unix: targets.MakeUnixNeutralizer(target),
	}

	target.MakeDataMmap = targets.MakePosixMmap(target, true, false)
	target.Neutralize = arch.unix.Neutralize
}

type arch struct {
	unix *targets.UnixNeutralizer
}