Skip to content

Commit 178812a

Browse files
authored
selinux: allow fuzzer to run on local system by unsandboxing /out folder (#14289)
Otherwise the fuzzer will not be found due to permssion error. This flag will just be ignored for non-selinux systems.
1 parent ae03baa commit 178812a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def _check_fuzzer_exists(project, fuzzer_name, args, architecture='x86_64'):
626626
"""Checks if a fuzzer exists."""
627627
platform = 'linux/arm64' if architecture == 'aarch64' else 'linux/amd64'
628628
command = ['docker', 'run', '--rm', '--platform', platform]
629-
command.extend(['-v', '%s:/out' % project.out])
629+
command.extend(['-v', '%s:/out:z' % project.out])
630630
command.append(_get_base_runner_image(args))
631631

632632
command.extend(['/bin/bash', '-c', 'test -f /out/%s' % fuzzer_name])

0 commit comments

Comments
 (0)