Skip to content

Commit 472874c

Browse files
committed
selftests/exec: Convert remaining /bin/sh to /bin/bash
As was intended with commit 1710742 ("selftests/exec: Perform script checks with /bin/bash"), convert the other instance of /bin/sh to /bin/bash. It appears that at least Debian Bookworm's /bin/sh (dash) does not conform to POSIX's "return 127 when script not found" requirement. Fixes: 1710742 ("selftests/exec: Perform script checks with /bin/bash") Reported-by: Muhammad Usama Anjum <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Kees Cook <[email protected]>
1 parent 0ef58cc commit 472874c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/exec/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ include ../lib.mk
1919

2020
$(OUTPUT)/subdir:
2121
mkdir -p $@
22-
$(OUTPUT)/script:
23-
echo '#!/bin/sh' > $@
22+
$(OUTPUT)/script: Makefile
23+
echo '#!/bin/bash' > $@
2424
echo 'exit $$*' >> $@
2525
chmod +x $@
2626
$(OUTPUT)/execveat.symlink: $(OUTPUT)/execveat

0 commit comments

Comments
 (0)