diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-01-12 13:58:53 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-01-13 17:03:14 +0100 |
| commit | 5060bda66fc0ed04a6db9db7bc382bdccb1615de (patch) | |
| tree | 32d99329071129a19ab57b585427991910121775 /sys/targets | |
| parent | f635b41d90ee4c01636d9b7f67091aa2ce2c2f20 (diff) | |
executor: remove sys_memfd_create defines
Add memfd_create as a dependency to syz_mount_image and
syz_read_part_table.
Diffstat (limited to 'sys/targets')
| -rw-r--r-- | sys/targets/targets.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go index a5946cf16..a803cc31b 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -457,7 +457,11 @@ var oses = map[string]osCommon{ ExecutorUsesShmem: true, ExecutorUsesForkServer: true, KernelObject: "vmlinux", - cflags: []string{"-static-pie"}, + PseudoSyscallDeps: map[string][]string{ + "syz_read_part_table": []string{"memfd_create"}, + "syz_mount_image": []string{"memfd_create"}, + }, + cflags: []string{"-static-pie"}, }, FreeBSD: { SyscallNumbers: true, |
