Searched refs:envp (Results 1 - 25 of 90) sorted by relevance

1234

/linux-master/security/tomoyo/
H A Dload_policy.c89 char *envp[3]; local
103 envp[0] = "HOME=/";
104 envp[1] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin";
105 envp[2] = NULL;
106 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
H A Dcondition.c50 * tomoyo_envp - Check envp[] in "struct linux_binbrm".
54 * @envc: Length of @envp.
55 * @envp: Pointer to "struct tomoyo_envp".
56 * @checked: Set to true if @envp[@env_name] was found.
61 const int envc, const struct tomoyo_envp *envp,
72 for (i = 0; i < envc; envp++, checked++, i++) {
75 if (!tomoyo_path_matches_pattern(&name, envp->name))
78 if (envp->value) {
80 envp->value);
81 if (envp
60 tomoyo_envp(const char *env_name, const char *env_value, const int envc, const struct tomoyo_envp *envp, u8 *checked) argument
105 tomoyo_scan_bprm(struct tomoyo_execve *ee, const u16 argc, const struct tomoyo_argv *argv, const u16 envc, const struct tomoyo_envp *envp) argument
318 tomoyo_parse_envp(char *left, char *right, struct tomoyo_envp *envp) argument
502 struct tomoyo_envp *envp = NULL; local
775 const struct tomoyo_envp *envp; local
[all...]
/linux-master/arch/um/os-Linux/
H A Delf_aux.c26 __init void scan_elf_aux( char **envp) argument
31 while ( *envp++ != NULL) ;
33 for ( auxv = (elf_auxv_t *)envp; auxv->a_type != AT_NULL; auxv++) {
38 if (__kernel_vsyscall < (unsigned long) envp)
44 if (vsyscall_ehdr < (unsigned long) envp)
H A Dmain.c105 extern void scan_elf_aux( char **envp);
107 int __init main(int argc, char **argv, char **envp) argument
140 scan_elf_aux(envp);
/linux-master/tools/include/nolibc/
H A Dcrt.h30 char **envp; local
62 environ = envp = argv + argc + 1;
65 for (auxv = (void *)envp; *auxv++;)
75 exitcode = _nolibc_main(argc, argv, envp);
/linux-master/drivers/net/wwan/iosm/
H A Diosm_ipc_uevent.c16 char *envp[2] = { NULL, NULL }; local
20 envp[0] = info->uevent;
22 if (kobject_uevent_env(&info->dev->kobj, KOBJ_CHANGE, envp))
/linux-master/drivers/s390/net/
H A Dsmsgiucv_app.c54 char *envp[4]; member in struct:smsg_app_event
84 ev->envp[0] = ev->buf;
85 ev->envp[1] = ev->envp[0] + ENV_SENDER_LEN;
86 ev->envp[2] = ev->envp[1] + ENV_PREFIX_LEN;
87 ev->envp[3] = NULL;
90 snprintf(ev->envp[0], ENV_SENDER_LEN, ENV_SENDER_STR "%s", from);
91 snprintf(ev->envp[1], ENV_PREFIX_LEN, ENV_PREFIX_STR "%s", SMSG_PREFIX);
92 snprintf(ev->envp[
[all...]
/linux-master/tools/testing/selftests/exec/
H A Dnull-argv.c47 int main(int argc, char *argv[], char *envp[]) argument
73 FORK(execve(argv[0], NULL, envp));
75 FORK(execve(argv[0], args, envp));
H A Dexecveat.c30 static char *envp[] = { "IN_TEST=yes", NULL, NULL }; variable
33 static int execveat_(int fd, const char *path, char **argv, char **envp, argument
37 return syscall(__NR_execveat, fd, path, argv, envp, flags);
56 rc = execveat_(fd, path, argv, envp, flags);
100 rc = execveat_(fd, path, argv, envp, flags);
443 envp[1] = "VERBOSE=1";
H A Dnon-regular.c190 char * const envp[1] = { NULL }; local
192 EXPECT_LT(fexecve(self->fd, argv, envp), 0);
/linux-master/include/linux/
H A Dumh.h25 char **envp; member in struct:subprocess_info
34 call_usermodehelper(const char *path, char **argv, char **envp, int wait);
37 call_usermodehelper_setup(const char *path, char **argv, char **envp,
H A Dkobject.h127 char *envp[UEVENT_NUM_ENVP]; member in struct:kobj_uevent_env
216 char *envp[]);
/linux-master/drivers/pnp/pnpbios/
H A Dcore.c89 char *argv[3], **envp, *buf, *scratch; local
92 if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL)))
95 kfree(envp);
108 envp[i++] = "HOME=/";
109 envp[i++] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin";
113 envp[i++] = "DEBUG=kernel";
121 envp[i++] = scratch;
125 envp[i++] = scratch;
128 envp[i] = NULL;
130 value = call_usermodehelper(sbin_pnpbios, argv, envp, UMH_WAIT_EXE
[all...]
/linux-master/tools/testing/selftests/x86/
H A Dtest_syscall_vdso.c28 int main(int argc, char **argv, char **envp) argument
36 long get_syscall(char **envp) argument
39 while (*envp++ != NULL)
41 for (auxv = (void *)envp; auxv->a_type != AT_NULL; auxv++)
376 int main(int argc, char **argv, char **envp) argument
392 syscall_addr = get_syscall(envp);
H A Dtest_mremap_vdso.c57 int main(int argc, char **argv, char **envp) argument
/linux-master/kernel/
H A Dumh.c112 (const char *const *)sub_info->envp);
337 * @envp: environment for process
352 * be freed. This can be used for freeing the argv and envp. The
357 char **envp, gfp_t gfp_mask,
375 sub_info->envp = envp;
474 * @envp: environment for process
483 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) argument
488 info = call_usermodehelper_setup(path, argv, envp, gfp_mask,
356 call_usermodehelper_setup(const char *path, char **argv, char **envp, gfp_t gfp_mask, int (*init)(struct subprocess_info *info, struct cred *new), void (*cleanup)(struct subprocess_info *info), void *data) argument
/linux-master/fs/nfs/
H A Dcache_lib.c37 static char *envp[] = { "HOME=/", local
52 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);
/linux-master/kernel/module/
H A Dkmod.c75 static char *envp[] = { local
98 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL,
/linux-master/drivers/gpu/drm/
H A Ddrm_sysfs.c443 char *envp[] = { event_string, NULL }; local
447 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp);
464 char *envp[] = { event_string, NULL }; local
468 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp);
484 char *envp[] = { hotplug_str, conn_id, NULL }; local
493 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp);
512 char *envp[4] = { hotplug_str, conn_id, prop_id, NULL }; local
527 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp);
/linux-master/drivers/vfio/mdev/
H A Dmdev_core.c64 char *envp[] = { env_string, NULL }; local
84 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp);
96 char *envp[] = { env_string, NULL }; local
106 kobject_uevent_env(&parent->dev->kobj, KOBJ_CHANGE, envp);
/linux-master/lib/
H A Dkobject_uevent.c221 r = kobject_uevent_env(kobj, action, env->envp);
427 if (strncmp(env->envp[i], modalias_prefix,
433 len = strlen(env->envp[i]) + 1;
436 memmove(env->envp[i], env->envp[i + 1],
440 env->envp[j] = env->envp[j + 1] - len;
614 env->envp, GFP_KERNEL,
658 if (env->envp_idx >= ARRAY_SIZE(env->envp)) {
674 env->envp[en
[all...]
/linux-master/drivers/greybus/
H A Dsvc_watchdog.c47 static char *envp[] = { local
60 call_usermodehelper(start_path, argv, envp, UMH_WAIT_EXEC);
/linux-master/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c77 char *const envp[] = { "I_AM_SERVICE=1", NULL }; local
81 execve(service_prog, argv, envp);
/linux-master/drivers/scsi/qedf/
H A Dqedf_dbg.c137 char *envp[] = {event_string, NULL}; local
152 kobject_uevent_env(&shost->shost_gendev.kobj, KOBJ_CHANGE, envp);
/linux-master/arch/mips/sibyte/common/
H A Dcfe.c213 char **envp = (char **) fw_arg2; local
226 cfe_ept = (long)envp;

Completed in 264 milliseconds

1234