summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/exec/binfmt_bind_interp.c
blob: 06d65062856b71014806f808e506bb645ec91fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: GPL-2.0
/*
 * Test interpreter for the bound-interpreter case of the binfmt_misc_bpf
 * selftest. Two copies are installed at different paths and bound to one
 * entry under different names; printing argv[0] - the path the kernel ran
 * this copy under - tells the harness which of them the load program picked.
 */
#include <stdio.h>

int main(int argc, char **argv)
{
	printf("BIND_RAN %s\n", argc > 0 ? argv[0] : "");
	return 0;
}