diff options
author | Kees Cook <keescook@chromium.org> | 2022-01-31 17:16:37 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-03-01 16:16:27 -0800 |
commit | 9132c3947b09a6c67372424ff69f867f2cee82f8 (patch) | |
tree | 8165db6efc1e3ea4922fffc793aeac8fb8cfb930 /tools/testing/selftests/exec/Makefile | |
parent | exec: Force single empty string when argv is empty (diff) | |
download | wireguard-linux-9132c3947b09a6c67372424ff69f867f2cee82f8.tar.xz wireguard-linux-9132c3947b09a6c67372424ff69f867f2cee82f8.zip |
selftests/exec: Test for empty string on NULL argv
Test for the NULL argv argument producing a single empty string on exec.
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Yang Yingliang <yangyingliang@huawei.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20220201011637.2457646-1-keescook@chromium.org
Diffstat (limited to 'tools/testing/selftests/exec/Makefile')
-rw-r--r-- | tools/testing/selftests/exec/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile index 12c5e27d32c1..551affb437fe 100644 --- a/tools/testing/selftests/exec/Makefile +++ b/tools/testing/selftests/exec/Makefile @@ -10,6 +10,7 @@ TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir TEST_FILES := Makefile TEST_GEN_PROGS += recursion-depth +TEST_GEN_PROGS += null-argv EXTRA_CLEAN := $(OUTPUT)/subdir.moved $(OUTPUT)/execveat.moved $(OUTPUT)/xxxxx* \ $(OUTPUT)/S_I*.test |