Lines Matching full:script
206 * a script or not (because the interpreter sees a filename like in check_execveat_pathmax()
221 * Execute as a long pathname relative to "/". If this is a script, in check_execveat_pathmax()
222 * the interpreter will launch but fail to open the script because its in check_execveat_pathmax()
231 ksft_print_msg("Invoke script via root_dfd and relative filename\n"); in check_execveat_pathmax()
269 char *fullname_script = realpath("script", NULL); in run_tests()
284 int fd_script = open_or_die("script", O_RDONLY); in run_tests()
288 int fd_script_ephemeral = open_or_die("script.ephemeral", O_RDONLY); in run_tests()
290 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); in run_tests()
361 /* Shell script wrapping executable file: */ in run_tests()
363 fail += check_execveat(subdir_dfd, "../script", 0); in run_tests()
364 fail += check_execveat(dot_dfd, "script", 0); in run_tests()
365 fail += check_execveat(dot_dfd_path, "script", 0); in run_tests()
372 /* O_CLOEXEC fd fails for a script (as script file inaccessible) */ in run_tests()
375 fail += check_execveat_fail(dot_dfd_cloexec, "script", 0, ENOENT); in run_tests()
377 /* Mess with script file that's already open: */ in run_tests()
379 rename("script.ephemeral", "script.moved"); in run_tests()
382 unlink("script.moved"); /* remove the file while fd open */ in run_tests()
387 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
388 fail += check_execveat(subdir_dfd_ephemeral, "script", 0); in run_tests()
390 unlink("subdir.moved/script"); in run_tests()
393 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
394 fail += check_execveat_fail(subdir_dfd_ephemeral, "script", 0, ENOENT); in run_tests()
416 fail += check_execveat_pathmax(root_dfd, "script", 1); in run_tests()
431 const char *script = "#!/bin/bash\nexit $*\n"; in prerequisites() local
436 exe_cp("script", "script.ephemeral"); in prerequisites()
439 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()
440 write(fd, script, strlen(script)); in prerequisites()