Lines Matching full:script

205 	 * a script or not (because the interpreter sees a filename like  in check_execveat_pathmax()
220 * Execute as a long pathname relative to "/". If this is a script, in check_execveat_pathmax()
221 * the interpreter will launch but fail to open the script because its in check_execveat_pathmax()
242 char *fullname_script = realpath("script", NULL); in run_tests()
257 int fd_script = open_or_die("script", O_RDONLY); in run_tests()
261 int fd_script_ephemeral = open_or_die("script.ephemeral", O_RDONLY); in run_tests()
263 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); in run_tests()
334 /* Shell script wrapping executable file: */ in run_tests()
336 fail += check_execveat(subdir_dfd, "../script", 0); in run_tests()
337 fail += check_execveat(dot_dfd, "script", 0); in run_tests()
338 fail += check_execveat(dot_dfd_path, "script", 0); in run_tests()
345 /* O_CLOEXEC fd fails for a script (as script file inaccessible) */ in run_tests()
348 fail += check_execveat_fail(dot_dfd_cloexec, "script", 0, ENOENT); in run_tests()
350 /* Mess with script file that's already open: */ in run_tests()
352 rename("script.ephemeral", "script.moved"); in run_tests()
355 unlink("script.moved"); /* remove the file while fd open */ in run_tests()
360 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
361 fail += check_execveat(subdir_dfd_ephemeral, "script", 0); in run_tests()
363 unlink("subdir.moved/script"); in run_tests()
366 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
367 fail += check_execveat_fail(subdir_dfd_ephemeral, "script", 0, ENOENT); in run_tests()
389 fail += check_execveat_pathmax(root_dfd, "script", 1); in run_tests()
396 const char *script = "#!/bin/sh\nexit $*\n"; in prerequisites() local
401 exe_cp("script", "script.ephemeral"); in prerequisites()
404 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()
405 write(fd, script, strlen(script)); in prerequisites()