Home
last modified time | relevance | path

Searched refs:execve (Results 1 - 25 of 60) sorted by relevance

123

/third_party/musl/libc-test/src/functionalext/supplement/process/
H A Dexecve.c31 execve("/bin/touch", argv, my_env); in execve_0100()
47 int ret = execve(" ", argv, my_env); in execve_0200()
63 int ret = execve(buff, argv, my_env); in execve_0300()
/third_party/musl/src/process/
H A Dexecvp.c19 return execve(file, argv, envp); in __execvpe()
39 execve(b, argv, envp); in __execvpe()
H A Dexecv.c7 return execve(path, argv, __environ); in execv()
H A Dexecve.c4 int execve(const char *path, char *const argv[], char *const envp[]) in execve() function
H A Dfexecve.c15 execve(buf, argv, envp); in fexecve()
H A Dexecle.c21 return execve(path, argv, envp); in execle()
/third_party/ltp/testcases/kernel/syscalls/prctl/
H A Dprctl06.c13 * A value of 0 indicates the regular execve(2) behavior. A value of
14 * 1 indicates execve(2) will operate in the privilege-restricting mode.
17 * at execve-time. For example, a process will not be able to execute a
22 * and preserved across execve(2). We also check NoNewPrivs field in
36 char *const argv[] = {BIN_PATH, "After execve, parent process", proc_sup, NULL}; in do_prctl()
37 char *const childargv[] = {BIN_PATH, "After execve, child process", proc_sup, NULL}; in do_prctl()
58 execve(BIN_PATH, childargv, envp); in do_prctl()
65 execve(BIN_PATH, argv, envp); in do_prctl()
/third_party/rust/crates/rustix/src/
H A Druntime.rs153 /// The program environment in the child after a `fork` and before an `execve`
253 /// `execve(path.as_c_str(), argv, envp)`—Execute a new command using the
264 /// [Linux]: https://man7.org/linux/man-pages/man2/execve.2.html
267 pub unsafe fn execve(path: &CStr, argv: *const *const u8, envp: *const *const u8) -> io::Errno { in execve() functions
268 backend::runtime::syscalls::execve(path, argv, envp) in execve()
/third_party/ltp/lib/newlib_tests/
H A Dtest_exec.c26 execve(path, argv, environ); in do_test()
/third_party/musl/porting/liteos_a/user/src/process/
H A Dfexecve.c15 execve(buf, argv, envp); in fexecve()
/third_party/ltp/testcases/kernel/syscalls/execve/
H A Dexecve06.c10 * execve(). This fixes at least one CVE where userspace programs start to
37 execve(path, argv, envp); in verify_execve()
H A Dexecve01.c36 execve(path, args, envp); in verify_execve()
H A Dexecve05.c15 * This testcase tests the basic functionality of the execve(2) system
19 * This tests the functionality of the execve(2) system call by spawning
53 TEST(execve(TEST_APP, argv, environ)); in do_child()
54 tst_res(TFAIL | TTERRNO, "execve() returned unexpected errno"); in do_child()
H A Dexecve02.c12 * Attempt to execve(2) an executable owned by root with no execute permissions
13 * for the other users, fails when execve(2) is used as a non-root user, the
46 TEST(execve(TEST_APP, argv, environ)); in do_child()
49 tst_brk(TFAIL, "execve() passed unexpectedly"); in do_child()
52 tst_brk(TFAIL | TTERRNO, "execve() failed unexpectedly"); in do_child()
54 tst_res(TPASS | TTERRNO, "execve() failed expectedly"); in do_child()
H A Dexecve04.c12 * Attempt to execve(2) a file which is being opened by another process for
45 TEST(execve(TEST_APP, argv, environ)); in verify_execve()
48 tst_res(TFAIL | TTERRNO, "execve succeeded, expected failure"); in verify_execve()
50 tst_res(TPASS | TTERRNO, "execve failed as expected"); in verify_execve()
H A Dexecve03.c10 * Testcase to check execve sets the following errnos correctly:
19 * 1. Attempt to execve(2) a file whose name is more than
22 * 2. Attempt to execve(2) a file which doesn't exist fails with
25 * 3. Attempt to execve(2) a pathname (executabl) comprising of a
28 * 4. Attempt to execve(2) a filename not within the address space
31 * 5. Attempt to execve(2) a filename that does not have executable
34 * 6. Attempt to execve(2) a zero length file with executable
116 TEST(execve(tc->tname, argv, NULL)); in verify_execve()
124 tst_res(TPASS | TTERRNO, "execve failed as expected"); in verify_execve()
128 tst_res(TFAIL | TTERRNO, "execve faile in verify_execve()
[all...]
/third_party/libunwind/libunwind/tests/
H A Dforker.c56 execve (program, child_argv, envp); in main()
/third_party/toybox/toys/example/
H A Dlogwrapper.c73 execve(list->str, toys.argv, environ); in logwrapper_main()
/third_party/selinux/libselinux/src/
H A Dsetexecfilecon.c67 return execve(filename, argv, envp); in rpm_execcon()
/third_party/python/Tools/scripts/
H A Drun_tests.py88 os.execve(sys.executable, args, environ)
/third_party/python/Lib/
H A D_bootsubprocess.py23 os.execve(self._cmd[0], self._cmd, self._env)
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dbrowser-wpadebug.c117 execve("/system/bin/am", argv, envp); in hs20_web_browser()
118 wpa_printf(MSG_ERROR, "execve: %s", strerror(errno)); in hs20_web_browser()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dbrowser-wpadebug.c117 execve("/system/bin/am", argv, envp); in hs20_web_browser()
118 wpa_printf(MSG_ERROR, "execve: %s", strerror(errno)); in hs20_web_browser()
/third_party/node/tools/
H A Dpseudo-tty.py83 os.execve(argv[0], argv, os.environ)
/third_party/python/Mac/Tools/
H A Dpythonw.c236 execve(exec_path, argv, environ); in main()
237 err(1, "execve: %s", argv[0]); in main()

Completed in 8 milliseconds

123