xref: /aosp_15_r20/external/linux-kselftest/android/patches/0007-execveat-use-system-bin-sh.patch (revision 053f45be4e351dfd5e965df293cd45b779f579ee)
1From c64fa51fbdabea40dedfbd3a86aee5a2e7ba460c Mon Sep 17 00:00:00 2001
2From: Steve Muckle <[email protected]>
3Date: Mon, 9 Oct 2017 15:06:34 -0700
4Subject: [PATCH 07/20] execveat: use /system/bin/sh
5
6The Android shell is located at /system/bin/sh.
7
8(cherry picked from commit 860cea0bba7f78cf4cbb78251849e6ef159e6914)
9Bug: 67016227
10Test: run vts-kernel -m VtsKernelLinuxKselftestStaging
11Signed-off-by: Steve Muckle <[email protected]>
12---
13 tools/testing/selftests/exec/execveat.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c
17index 67bf7254a48f..ecc974e75a9b 100644
18--- a/tools/testing/selftests/exec/execveat.c
19+++ b/tools/testing/selftests/exec/execveat.c
20@@ -379,7 +379,7 @@ static int run_tests(void)
21 static void prerequisites(void)
22 {
23 	int fd;
24-	const char *script = "#!/bin/sh\nexit $*\n";
25+	const char *script = "#!/system/bin/sh\nexit $*\n";
26
27 	/* Create ephemeral copies of files */
28 	exe_cp("execveat", "execveat.ephemeral");
29--
302.42.0.609.gbb76f46606-goog
31
32