Lines Matching full:script

191 	 * a script or not (because the interpreter sees a filename like  in check_execveat_pathmax()
206 * Execute as a long pathname relative to "/". If this is a script, in check_execveat_pathmax()
207 * the interpreter will launch but fail to open the script because its in check_execveat_pathmax()
228 char *fullname_script = realpath("script", NULL); in run_tests()
243 int fd_script = open_or_die("script", O_RDONLY); in run_tests()
247 int fd_script_ephemeral = open_or_die("script.ephemeral", O_RDONLY); in run_tests()
249 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); in run_tests()
320 /* Shell script wrapping executable file: */ in run_tests()
322 fail += check_execveat(subdir_dfd, "../script", 0); in run_tests()
323 fail += check_execveat(dot_dfd, "script", 0); in run_tests()
324 fail += check_execveat(dot_dfd_path, "script", 0); in run_tests()
331 /* O_CLOEXEC fd fails for a script (as script file inaccessible) */ in run_tests()
334 fail += check_execveat_fail(dot_dfd_cloexec, "script", 0, ENOENT); in run_tests()
336 /* Mess with script file that's already open: */ in run_tests()
338 rename("script.ephemeral", "script.moved"); in run_tests()
341 unlink("script.moved"); /* remove the file while fd open */ in run_tests()
346 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
347 fail += check_execveat(subdir_dfd_ephemeral, "script", 0); in run_tests()
349 unlink("subdir.moved/script"); in run_tests()
352 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
353 fail += check_execveat_fail(subdir_dfd_ephemeral, "script", 0, ENOENT); in run_tests()
375 fail += check_execveat_pathmax(root_dfd, "script", 1); in run_tests()
382 const char *script = "#!/bin/sh\nexit $*\n"; in prerequisites() local
387 exe_cp("script", "script.ephemeral"); in prerequisites()
390 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()
391 write(fd, script, strlen(script)); in prerequisites()