]> Git Repo - linux.git/commitdiff
selftests/exec: Convert remaining /bin/sh to /bin/bash
authorKees Cook <[email protected]>
Fri, 15 Mar 2024 18:26:35 +0000 (11:26 -0700)
committerKees Cook <[email protected]>
Mon, 18 Mar 2024 18:19:37 +0000 (11:19 -0700)
As was intended with commit 17107429947b ("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: 17107429947b ("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]>
tools/testing/selftests/exec/Makefile

index a0b8688b0836941e0f8895f0477ea8da78a04f51..fb4472ddffd81bda3097619ad86d50d4cef6eb9e 100644 (file)
@@ -19,8 +19,8 @@ include ../lib.mk
 
 $(OUTPUT)/subdir:
        mkdir -p $@
-$(OUTPUT)/script:
-       echo '#!/bin/sh' > $@
+$(OUTPUT)/script: Makefile
+       echo '#!/bin/bash' > $@
        echo 'exit $$*' >> $@
        chmod +x $@
 $(OUTPUT)/execveat.symlink: $(OUTPUT)/execveat
This page took 0.114129 seconds and 4 git commands to generate.