Home
last modified time | relevance | path

Searched refs:envp (Results 1 – 25 of 94) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/s390/net/
Dsmsgiucv_app.c54 char *envp[4]; member
84 ev->envp[0] = ev->buf; in smsg_app_event_alloc()
85 ev->envp[1] = ev->envp[0] + ENV_SENDER_LEN; in smsg_app_event_alloc()
86 ev->envp[2] = ev->envp[1] + ENV_PREFIX_LEN; in smsg_app_event_alloc()
87 ev->envp[3] = NULL; in smsg_app_event_alloc()
90 snprintf(ev->envp[0], ENV_SENDER_LEN, ENV_SENDER_STR "%s", from); in smsg_app_event_alloc()
91 snprintf(ev->envp[1], ENV_PREFIX_LEN, ENV_PREFIX_STR "%s", SMSG_PREFIX); in smsg_app_event_alloc()
92 snprintf(ev->envp[2], ENV_TEXT_LEN(msg), ENV_TEXT_STR "%s", msg); in smsg_app_event_alloc()
113 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, p->envp); in smsg_event_work_fn()
/kernel/linux/linux-5.10/security/tomoyo/
Dload_policy.c89 char *envp[3]; in tomoyo_load_policy() local
103 envp[0] = "HOME=/"; in tomoyo_load_policy()
104 envp[1] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin"; in tomoyo_load_policy()
105 envp[2] = NULL; in tomoyo_load_policy()
106 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); in tomoyo_load_policy()
Dcondition.c61 const int envc, const struct tomoyo_envp *envp, in tomoyo_envp() argument
72 for (i = 0; i < envc; envp++, checked++, i++) { in tomoyo_envp()
75 if (!tomoyo_path_matches_pattern(&name, envp->name)) in tomoyo_envp()
78 if (envp->value) { in tomoyo_envp()
80 envp->value); in tomoyo_envp()
81 if (envp->is_not) in tomoyo_envp()
85 if (!envp->is_not) in tomoyo_envp()
107 const u16 envc, const struct tomoyo_envp *envp) in tomoyo_scan_bprm() argument
173 envc, envp, in tomoyo_scan_bprm()
206 for (i = 0; i < envc; envp++, i++) { in tomoyo_scan_bprm()
[all …]
/kernel/linux/linux-5.10/arch/um/os-Linux/
Delf_aux.c26 __init void scan_elf_aux( char **envp) in scan_elf_aux() argument
31 while ( *envp++ != NULL) ; in scan_elf_aux()
33 for ( auxv = (elf_auxv_t *)envp; auxv->a_type != AT_NULL; auxv++) { in scan_elf_aux()
38 if (__kernel_vsyscall < (unsigned long) envp) in scan_elf_aux()
44 if (vsyscall_ehdr < (unsigned long) envp) in scan_elf_aux()
Dmain.c105 extern void scan_elf_aux( char **envp);
107 int __init main(int argc, char **argv, char **envp) in main() argument
140 scan_elf_aux(envp); in main()
/kernel/linux/linux-5.10/drivers/pnp/pnpbios/
Dcore.c89 char *argv[3], **envp, *buf, *scratch; in pnp_dock_event() local
92 if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL))) in pnp_dock_event()
95 kfree(envp); in pnp_dock_event()
108 envp[i++] = "HOME=/"; in pnp_dock_event()
109 envp[i++] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin"; in pnp_dock_event()
113 envp[i++] = "DEBUG=kernel"; in pnp_dock_event()
121 envp[i++] = scratch; in pnp_dock_event()
125 envp[i++] = scratch; in pnp_dock_event()
128 envp[i] = NULL; in pnp_dock_event()
130 value = call_usermodehelper(sbin_pnpbios, argv, envp, UMH_WAIT_EXEC); in pnp_dock_event()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/x86/
Dtest_syscall_vdso.c28 int main(int argc, char **argv, char **envp) in main() argument
36 long get_syscall(char **envp) in get_syscall() argument
39 while (*envp++ != NULL) in get_syscall()
41 for (auxv = (void *)envp; auxv->a_type != AT_NULL; auxv++) in get_syscall()
376 int main(int argc, char **argv, char **envp) in main() argument
392 syscall_addr = get_syscall(envp); in main()
/kernel/liteos_a/kernel/extended/dynload/src/
Dlos_exec_elf.c117 INT32 LOS_DoExecveFile(const CHAR *fileName, CHAR * const *argv, CHAR * const *envp) in LOS_DoExecveFile() argument
127 ((envp != NULL) && !LOS_IsUserAddress((VADDR_T)(UINTPTR)envp))) { in LOS_DoExecveFile()
151 loadInfo.envp = envp; in LOS_DoExecveFile()
/kernel/linux/linux-5.10/include/linux/
Dumh.h24 char **envp; member
33 call_usermodehelper(const char *path, char **argv, char **envp, int wait);
36 call_usermodehelper_setup(const char *path, char **argv, char **envp,
/kernel/linux/linux-5.10/kernel/
Dumh.c112 (const char *const *)sub_info->envp); in call_usermodehelper_exec_async()
357 char **envp, gfp_t gfp_mask, in call_usermodehelper_setup() argument
375 sub_info->envp = envp; in call_usermodehelper_setup()
472 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument
477 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
Dkmod.c72 static char *envp[] = { in call_modprobe() local
93 info = call_usermodehelper_setup(modprobe_path, argv, envp, GFP_KERNEL, in call_modprobe()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_sysfs.c318 char *envp[] = { event_string, NULL }; in drm_sysfs_lease_event() local
322 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_lease_event()
339 char *envp[] = { event_string, NULL }; in drm_sysfs_hotplug_event() local
343 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_hotplug_event()
362 char *envp[4] = { hotplug_str, conn_id, prop_id, NULL }; in drm_sysfs_connector_status_event() local
374 kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_sysfs_connector_status_event()
/kernel/linux/linux-5.10/lib/
Dkobject_uevent.c222 r = kobject_uevent_env(kobj, action, env->envp); in kobject_synth_uevent()
426 if (strncmp(env->envp[i], modalias_prefix, in zap_modalias_env()
432 len = strlen(env->envp[i]) + 1; in zap_modalias_env()
435 memmove(env->envp[i], env->envp[i + 1], in zap_modalias_env()
439 env->envp[j] = env->envp[j + 1] - len; in zap_modalias_env()
615 env->envp, GFP_KERNEL, in kobject_uevent_env()
659 if (env->envp_idx >= ARRAY_SIZE(env->envp)) { in add_uevent_var()
675 env->envp[env->envp_idx++] = &env->buf[env->buflen]; in add_uevent_var()
Dkobject.c496 char *envp[2]; in kobject_rename() local
517 envp[0] = devpath_string; in kobject_rename()
518 envp[1] = NULL; in kobject_rename()
537 kobject_uevent_env(kobj, KOBJ_MOVE, envp); in kobject_rename()
560 char *envp[2]; in kobject_move() local
583 envp[0] = devpath_string; in kobject_move()
584 envp[1] = NULL; in kobject_move()
592 kobject_uevent_env(kobj, KOBJ_MOVE, envp); in kobject_move()
/kernel/linux/linux-5.10/fs/
Dexec.c1860 struct user_arg_ptr envp, in do_execveat_common() argument
1896 retval = count(envp, MAX_ARG_STRINGS); in do_execveat_common()
1910 retval = copy_strings(bprm->envc, envp, bprm); in do_execveat_common()
1928 const char *const *argv, const char *const *envp) in kernel_execve() argument
1950 retval = count_strings_kernel(envp); in kernel_execve()
1964 retval = copy_strings_kernel(bprm->envc, envp, bprm); in kernel_execve()
1985 struct user_arg_ptr envp = { .ptr.native = __envp }; in do_execve() local
1986 return do_execveat_common(AT_FDCWD, filename, argv, envp, 0); in do_execve()
1995 struct user_arg_ptr envp = { .ptr.native = __envp }; in do_execveat() local
1997 return do_execveat_common(fd, filename, argv, envp, flags); in do_execveat()
[all …]
Dbinfmt_aout.c62 char __user * __user *envp; in create_aout_tables() local
82 envp = (char __user * __user *) sp; in create_aout_tables()
86 put_user((unsigned long) envp,--sp); in create_aout_tables()
102 put_user(p,envp++); in create_aout_tables()
107 put_user(NULL,envp); in create_aout_tables()
/kernel/linux/linux-5.10/tools/testing/selftests/exec/
Dexecveat.c27 static char *envp[] = { "IN_TEST=yes", NULL, NULL }; variable
30 static int execveat_(int fd, const char *path, char **argv, char **envp, in execveat_() argument
34 return syscall(__NR_execveat, fd, path, argv, envp, flags); in execveat_()
51 rc = execveat_(fd, path, argv, envp, flags); in _check_execveat_fail()
88 rc = execveat_(fd, path, argv, envp, flags); in check_execveat_invoked_rc()
426 envp[1] = "VERBOSE=1"; in main()
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
Dprocess_test_068.cpp38 char *envp[] = {"ABC=asddfg", NULL}; in TestCase() local
45 int ret = posix_spawn(&pid, "/storage/test_spawn", NULL, NULL, argv1, envp); in TestCase()
Dprocess_test_069.cpp38 char *envp[] = {"ABC=asddfg", NULL}; in TestCase() local
46 ret = posix_spawnp(&pid, "/storage/test_spawn", NULL, NULL, argv1, envp); in TestCase()
/kernel/linux/linux-5.10/arch/x86/ia32/
Dia32_aout.c65 u32 __user *argv, *envp, *sp; in create_aout_tables() local
70 envp = sp; in create_aout_tables()
73 put_user((unsigned long) envp, --sp); in create_aout_tables()
90 put_user((u32)(unsigned long)p, envp++); in create_aout_tables()
95 put_user(0, envp); in create_aout_tables()
/kernel/linux/linux-5.10/security/keys/
Drequest_key.c96 static int call_usermodehelper_keys(const char *path, char **argv, char **envp, in call_usermodehelper_keys() argument
101 info = call_usermodehelper_setup(path, argv, envp, GFP_KERNEL, in call_usermodehelper_keys()
122 char *argv[9], *envp[3], uid_str[12], gid_str[12]; in call_sbin_request_key() local
176 envp[i++] = "HOME=/"; in call_sbin_request_key()
177 envp[i++] = "PATH=/sbin:/bin:/usr/sbin:/usr/bin"; in call_sbin_request_key()
178 envp[i] = NULL; in call_sbin_request_key()
193 ret = call_usermodehelper_keys(request_key, argv, envp, keyring, in call_sbin_request_key()
/kernel/linux/linux-5.10/drivers/vfio/mdev/
Dmdev_core.c147 char *envp[] = { env_string, NULL }; in mdev_register_device() local
199 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); in mdev_register_device()
225 char *envp[] = { env_string, NULL }; in mdev_unregister_device() local
251 kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); in mdev_unregister_device()
/kernel/linux/linux-5.10/drivers/video/backlight/
Dbacklight.c163 char *envp[2]; in backlight_generate_event() local
167 envp[0] = "SOURCE=sysfs"; in backlight_generate_event()
170 envp[0] = "SOURCE=hotkey"; in backlight_generate_event()
173 envp[0] = "SOURCE=unknown"; in backlight_generate_event()
176 envp[1] = NULL; in backlight_generate_event()
177 kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp); in backlight_generate_event()
/kernel/linux/linux-5.10/fs/nfs/
Dcache_lib.c37 static char *envp[] = { "HOME=/", in nfs_cache_upcall() local
52 ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC); in nfs_cache_upcall()
/kernel/linux/linux-5.10/arch/x86/kernel/fpu/
Dsignal.c282 struct user_i387_ia32_struct *envp = NULL; in __fpu__restore_sig() local
394 envp = &env; in __fpu__restore_sig()
425 sanitize_restored_user_xstate(&fpu->state, envp, user_xfeatures, in __fpu__restore_sig()
446 sanitize_restored_user_xstate(&fpu->state, envp, user_xfeatures, in __fpu__restore_sig()

1234